submit_edit
Commit an inspected Cosense edit preview to apply a prepared change. Confirm the preview matches the original write request, and verify ambiguous outcomes with read_page before retrying.
Instructions
Commit one inspected Cosense edit preview. This mutates Cosense. Call it only for the same explicit user write request that produced the preview. Never retry an ambiguous result before read_page confirms whether the intended change already landed.
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_url": "<project_url>",
"preview_id": "<preview_id>"
},
"name": "submit_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview_id | Yes | ||
| project_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| warnings | No |