Agent Patch Shared State
agent_patch_shared_stateApply an RFC 6902 JSON Patch to a shared state slot.
Only EXECUTOR/COMMANDER roles may write. Human-locked slots return 403
HUMAN_SOVEREIGNTY_LOCKED. Use expected_version for optimistic concurrency;
expected_version=0 creates the slot (the patch applies to an empty state,
in `namespace`, default "default"). Set lease_seconds to hold a short
exclusive lease while working.
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": {
"slot_key": "<slot_key>",
"ops": "<ops>",
"expected_version": "<expected_version>"
},
"name": "agent_patch_shared_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| agent | No | ||
| slot_key | Yes | ||
| namespace | No | ||
| lease_epoch | No | ||
| lease_seconds | No | Optional lease TTL in seconds. Default 900; allowed 5–3600. | |
| idempotency_key | No | Optional. Retries with the same key and arguments within 24 h replay the first result (replayed=true) without a second write; a different body with the same key is idempotency_key_reused. | |
| expected_version | Yes | ||
| session_batch_id | No | ||
| return_current_on_conflict | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||