Use this file to discover all available pages before exploring further.
An agent asked to “count log lines across all pods in my cluster” produced this in a single execute call — no sequential tool calls, no raw logs in the context window.
With traditional MCP tools, this would be 12+ sequential round trips: one to list pods, then one per container to fetch logs. Each round trip adds network latency, and every raw response gets dumped into the LLM’s context window.Code Mode does it in one — the agent’s code filters, aggregates, and formats the data inside the sandbox before returning. Only the summary hits the context window, not 35,000 lines of raw logs.
Filters for running pods, expands to per-container list
Fans out Promise.all() — 11 log fetches in parallel
Counts lines per container, handles errors gracefully
Sorts by line count, returns a clean summary
The heaviest pod (api-proxy, 24,828 lines) took 367ms. Small pods (~10 lines) came back in ~89ms. The parallel fan-out means total time equals the slowest fetch, not the sum.