submit_document_command_tool
Submits a document command by type when no named edit tool covers it, validates the payload against the type schema, and applies an undoable edit to the open Studio project.
Instructions
Submit any document command by type: the edit a named tool does not cover.
Studio's own edits are document commands, and this reaches every type by name. The
payload is checked against the type's schema (document_command_schema_tool) and an
unknown top-level field is refused. The edit is a typed journal row and one history step,
reaches an open Studio tab and is undoable with history_undo. Prefer the named tool when one
exists: it adds the safety checks and options that tool documents. A type whose named tool
does work a bare submit cannot (InsertSegment) is refused with the tool to use. Reuse
command_id only to retry the same edit. Errors: document_command_unknown,
document_command_not_generic, invalid_payload.
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": {
"command_type": "<command_type>",
"payload": "<payload>"
},
"name": "submit_document_command_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | ||
| command_id | No | ||
| command_type | Yes | ||
| project_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |