fleet_session_state
Inspect accumulated fleet session results between rounds. Retrieve session state, round count, node details, and fleet summary without submitting new scores.
Instructions
Get the current state of a fleet session without submitting new scores. Response: { session_id, round_count, nodes: [{ node_id, node_name, episodes: [...] }], fleet_summary }. Use to inspect accumulated results between rounds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Fleet session ID |
Implementation Reference
- src/index.ts:651-667 (registration)Registration of the 'fleet_session_state' tool via server.tool(), with its Zod schema input definition (session_id) and handler.
server.tool( "fleet_session_state", "Get the current state of a fleet session without submitting new scores. Response: { session_id, round_count, nodes: [{ node_id, node_name, episodes: [...] }], fleet_summary }. Use to inspect accumulated results between rounds.", { session_id: z.string().describe("Fleet session ID"), }, async ({ session_id }) => { const guard = requireApiKey(); if (guard) return guard; const result = await apiFetch("/api/fleet-session", { method: "POST", headers: apiKeyHeaders(), body: { action: "state", session_id }, }); return formatResult(result); } ); - src/index.ts:654-656 (schema)Zod schema defining the input: session_id (string) is the only required parameter.
{ session_id: z.string().describe("Fleet session ID"), }, - src/index.ts:657-666 (handler)Handler function that checks for API key, then calls POST /api/fleet-session with action:'state' and session_id to fetch current fleet session state.
async ({ session_id }) => { const guard = requireApiKey(); if (guard) return guard; const result = await apiFetch("/api/fleet-session", { method: "POST", headers: apiKeyHeaders(), body: { action: "state", session_id }, }); return formatResult(result); }