edit_session
Apply one atomic, undoable batch of changes to the shared preset. Paths are field-name arrays; nodes and connections use stable element ids instead of numeric indices, e.g. [document,graphs,root,nodes,node-id,params,gain]. Use describe_nodes templates when adding nodes. Supply baseRevision from read_session. Independent concurrent changes merge; conflicting fields return SESSION_CONFLICT. Significant agent batches automatically checkpoint the previous state. Returns the new state with checkpoint summaries; include checkpoints=true to retrieve restorable states. Never blindly replace the whole document after a 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": {
"sessionId": "<sessionId>",
"token": "<token>",
"baseRevision": "<baseRevision>",
"changes": "<changes>"
},
"name": "edit_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | No | agent | |
| label | No | Agent edit | |
| token | Yes | ||
| changes | Yes | ||
| sessionId | Yes | ||
| checkpoint | No | ||
| checkpoints | No | ||
| baseRevision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||