Expand description
apr.trace — M2 tool. Layer-by-layer tensor trace for debugging a model.
Wraps apr trace <model> --json [--layer <pat>].
#2407: the tool used to advertise a reference argument in its
inputSchema and forward it as apr trace --reference <path>, which is a
stub: it printed {"comparison": "reference comparison not yet implemented"} and exited 0. The wrapper drops stderr on success, so an
MCP client saw a plain success result for a comparison that never
happened. reference is no longer advertised, and supplying it now
returns isError.
Constants§
- NAME
- Tool name registered with MCP clients.
Functions§
- build_
argv - Build the
apr trace ...argv fromtools/callarguments. - call
- Execute
apr.traceby spawningapr trace <model> --json [...flags]. - dispatch
- HELIX-IDEA-002 — unified-signature shim for the inventory dispatcher.
- trace_
tool_ definition - Return the MCP tool definition for
apr.trace.