end_session
End a work session. This triggers context block generation — your activities are summarized and stored in the knowledge graph for future reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | Yes | Outcome: success, failure, partial, abandoned | |
| session_id | Yes | Session ID to end | |
| token_usage | No | Token usage for this session. JSON object with fields: input_tokens (int), output_tokens (int), total_tokens (int), model (string), estimated_cost_usd (float). Optional — set when the agent can report consumption. |