Skip to main content

Module trace

Module trace 

Source
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 from tools/call arguments.
call
Execute apr.trace by spawning apr 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.