Patch a spec file
applyEdit a spec file in place with a patch to move, reorder, rename, restyle, add, remove, or group items instead of rewriting it; writes SPEC.patch.json so regenerated output keeps the change.
Instructions
Edit a spec file with a patch instead of rewriting it: move or reorder items, rename text, change colors, add or remove things, or move them into a group, so a regenerated spec keeps the change. Changes the spec file in place and writes the patch beside it (SPEC.patch.json). Render the spec to the same out path again; changed in the result says what moved.
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": {
"spec": "<spec>",
"patch": "<patch>"
},
"name": "apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | Path of the spec file to change. It is edited in place. | |
| patch | Yes | A list of operations (place, order, style, text, add, remove, move-to-group), or the path of a patch file. |