screen_record_start
屏幕、窗口与界面 · macOS
效果: 写入. 状态: 受限可用.
“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。
macOS
用途
开始使用 ScreenCaptureKit 录制显示器、窗口或区域。v1 中只能有一个活动会话——第二次启动会返回 already_recording。返回供 record_marker 和 screen_record_stop 使用的 session_id。需要“屏幕录制”权限;若没有该权限,会返回明确的 permission_required 错误,绝不会静默地不执行任何操作。
必填输入
target
输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。
权限与确认
架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。
- 仅使用用户在此平台上授权的应用、账户和资源。请查阅此工具针对平台的说明,以了解其连接和权限要求;本目录不声称需要额外的 OAuth 范围或操作系统授权。
英文规范技术架构 — macOS
{
"properties": {
"fps": {
"description": "Frames per second (default 60).",
"type": "integer"
},
"output_path": {
"description": "Where to write the .mov (default: temp file, returned by stop). Missing parent folders are created.",
"type": "string"
},
"show_cursor": {
"description": "Default true.",
"type": "boolean"
},
"target": {
"description": "What to capture.",
"properties": {
"display_id": {
"description": "Required if kind=display.",
"type": "string"
},
"kind": {
"enum": [
"display",
"window",
"region"
],
"type": "string"
},
"region": {
"description": "Required if kind=region: {x,y,w,h} global points.",
"type": "object"
},
"window_id": {
"description": "Required if kind=window.",
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
}
},
"required": [
"target"
],
"type": "object"
}文档示例
screen_record_start 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。
{
"target": {
"display_id": "1",
"kind": "display"
}
}