update_session_state
Update an existing session's state by merging progress, phase, and metadata. Enforces orchestrator-only authorization and versioned concurrency to prevent update conflicts.
Instructions
Update the session state. Orchestrator only. The only way to modify session state.
AUTOMATIC TRIGGERS - Call this when:
You need to record progress updates
Setting the current phase of work
Storing session metadata (current step, active agents, etc.)
ONLY the orchestrator can call this. State is versioned with optimistic concurrency to prevent conflicts. If update fails, retry with latest state.
PARAMETERS:
session_id: Target session
state: New state dict (will be merged with existing state)
orchestrator_id: The orchestrator's agent ID (for authorization)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| session_id | Yes | ||
| orchestrator_id | Yes |