Expand description
MCP tool handlers (spec §3). Each maps a worker result Value into the client-facing shape, then
canonicalizes every address string through the attached program’s AddressCanonicalizer (spec §6).
Domain errors become CallToolResult{isError:true} with the ErrorEnvelope as text (spec §4.2).
Constants§
- DESC_
ATTACH_ PROGRAM - DESC_
COMMENT - DESC_
DESCRIBE_ ADDRESS - DESC_
FIND_ FUNCTIONS - DESC_
GET_ DATATYPE - DESC_
GET_ DISASSEMBLY - DESC_
GET_ XREFS - DESC_
INSPECT_ FUNCTION - DESC_
LIST_ DATA_ ITEMS - DESC_
LIST_ PROJECT_ PROGRAMS - DESC_
LIST_ SEGMENTS - DESC_
LIST_ STRINGS - DESC_
LIST_ SYMBOLS - DESC_
READ_ BYTES - DESC_
RENAME - DESC_
RESOLVE_ SYMBOL - DESC_
SET_ DATATYPE - DESC_
SET_ LOCAL - DESC_
SET_ PROTOTYPE
Functions§
- canon_
addr 🔒 - Re-render a worker
space:offsetaddress into the canonical form. If the worker string doesn’t parse, pass it through unchanged rather than error: a display glitch must never fail a good result. - canonicalize_
addr_ array - Canonicalize a
fieldaddress string on every object inv[array_key], in place. Total: an unparseable string passes through unchanged (canon_addr is total). - canonicalize_
addr_ field - Canonicalize a top-level
fieldaddress string onv, in place (total). Mirrorscanonicalize_addr_arrayfor a scalar field rather than an array of objects. - canonicalize_
candidates - Canonicalize the
addressin each AMBIGUOUS_SYMBOL candidate (spec §6). - canonicalize_
function_ context - Canonicalize every address in a
FunctionContext(entry_point, thunked_to, all edge addresses, everydata_refs[].address— Task 16, and everycomments[].address— M2b read-back tidy). - canonicalize_
functions - Canonicalize
entry_point(+thunked_to) in each function of a find_functions result, in place.