Edit a Studio project with ops
studio_patchFree. Apply editor ops (set_line, split, merge, set_setting, bind_visual, ...) in one step. A 409 means the project changed: you get the new revision and the ops are NOT re-applied.
Args: project_id: project. ops: 1-50 ops, each {op, ...fields}. if_revision: the revision you read.
Returns: {ok, project:{...summary}} or {ok:false, error_code:"revision_conflict", revision}
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": {
"project_id": "<project_id>",
"ops": "<ops>",
"if_revision": "<if_revision>"
},
"name": "studio_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| project_id | Yes | A project id from studio_list_projects. | |
| if_revision | Yes |