md_patch
Edits a Markdown field (shared team data) with operations applied in order to the current text, without resending the whole field; any failed operation rejects the whole edit. Saved the same way as a whole-field write: permissions, format, design markers and the gist; the tester's QA protocol in result stays as is. Returns the outline, sha and the line of each operation.
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": {
"entity": "<entity>",
"field": "<field>",
"ops": "<ops>"
},
"name": "md_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ID | No | Entity ID; a task or feature can also be addressed by key. | |
| key | No | Task number or feature key (#F12) when the ID is unknown. | |
| ops | Yes | Operations in order: replace, insertBefore, insertAfter, delete, move - a section by heading ("## Chat") or ::: doc title, line from the outline when the title repeats; move - before / after a heading (targetLine when that heading repeats) or to start / end; append - text at the end; find → replace - one occurrence, all: true for every one, expectedCount - the expected number. | |
| field | Yes | spec; result for a task; notes for a version. | |
| entity | Yes | task (a task or bug), feature, product or version. | |
| expectedSha | No | sha from the context or a previous read; a changed text rejects the edit. | |
| designUnlink | No | true - the edit may remove design markers; otherwise losing a marker is rejected. |