write_state
Store key-value pairs in consultation shared state to coordinate subagents, track discovered concepts, record current phase, or mark conflicts during multi-agent system architecture reviews.
Instructions
SHARED STATE (write) — Upsert a key-value pair in consultation shared state. Use for subagent coordination: store discovered concepts, current phase, conflict markers, or any JSON-serializable value. Logs a state_write step to the consultation.
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": {
"consultation_id": "<consultation_id>",
"key": "<key>",
"value": "<value>"
},
"name": "write_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| consultation_id | Yes | The consultation session ID | |
| key | Yes | State key (e.g. 'discovered_concepts', 'current_phase') | |
| value | Yes | Any JSON-serializable value to store |