studio_prepare_media
Generate replayable photo crops from a source image using focus, protected-subject, ratio, and background-token settings; returns SHA-based asset registration commands for atomic commits and undo.
Instructions
从原图按焦点/保护主体/比例/底色令牌生成可重放的摄影素材,返回带 SHA 的资源登记命令,不自动改画布。将 registerCommand 和图片节点修改原子提交,支持一起撤销。需要 Python Pillow。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sourcePath": "<sourcePath>",
"crops": "<crops>"
},
"name": "studio_prepare_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| port | No | ||
| async | No | true在工程内持久记录并返回句柄;结果未知时按requestKey核对,不重做 | |
| crops | Yes | ||
| credit | No | ||
| projectDir | No | ||
| requestKey | No | ||
| sourcePath | Yes | ||
| baseRevision | No |