Skip to main content
Close an agent session by id. Call this with the session_id returned by start_session. Dispatches to the end_session internal service method.

Parameters

Returns

Returned as the structuredContent payload.

Example

Request:
Response:

Annotations

The tool’s MCP behaviour hints, as emitted in tools/list (advisory display metadata — see the annotations contract): Closes existing state exactly once: the second call is a guarded no-op (idempotent), and nothing is deleted — the session row and every provenance link to it survive, so it is not destructive.