Save a new version
revise_specSaves a change to a saved request as a new version. The save fails if someone changed the request after the caller read it.
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": {
"expected_revision_id": "<expected_revision_id>",
"ast": "<ast>",
"spec_id": "<spec_id>"
},
"name": "revise_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | The revised request in the person's own words. Lists run from this version are named from it. Without it, the lists are named from the reading. | |
| ast | Yes | ||
| name | No | ||
| context | No | ||
| spec_id | Yes | ||
| parent_revision_id | No | The revision of the same request that the new version branches from. Without it, the new version branches from the current head. expected_revision_id still protects the current head against concurrent edits. | |
| expected_revision_id | Yes |