Split from #17995. One sentence: an agent or the terminal reads the same trace list, one trace and a comparison a person reads on the page, with the same words.
Files: src/tui/screens/traces.ts, src/tui/screens/trace.ts, the MCP tool registry (find it with grep for an existing tool), docs/features/traces.md.
Risks: keep outputs token-light; no new dependency.
Brief: torque.
Done when: a test calls each MCP tool and gets the same data as the API; a TUI test opens a comparison from two marked rows.
Reviewed pull #18183 at its head: ticked MCP tools traces_list, trace_get and trace_compare call the same functions as the API routes, gated the same way.; src/tui/screens/traces.ts and trace.ts can mark two rows and open the comparison from 5a..
Split from #17995. One sentence: an agent or the terminal reads the same trace list, one trace and a comparison a person reads on the page, with the same words.
Files: src/tui/screens/traces.ts, src/tui/screens/trace.ts, the MCP tool registry (find it with grep for an existing tool), docs/features/traces.md. Risks: keep outputs token-light; no new dependency. Brief: torque.
Done when: a test calls each MCP tool and gets the same data as the API; a TUI test opens a comparison from two marked rows.