update_schema
Replaces an agent schema using its current base version to prevent overwrites; on conflict, reread and reconcile before applying changes.
Instructions
Update an agent schema using its current base_version. Supplied schema_data replaces the full document; reload and reconcile on CONFLICT.
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": {
"schema_id": "<schema_id>"
},
"name": "update_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changelog | No | Reason for the change, recorded in version history | |
| schema_id | Yes | UUID of the schema to update | |
| schema_data | No | Complete new schema_data in the format used by create_schema. Replaces the previous object entirely; partial updates are not supported. | |
| base_version | No | Recommended: version read from get_schema. A concurrent change returns CONFLICT with the current version and saves nothing; reread and reapply. Without it, the last write wins. |