Skip to main content

Module error

Module error 

Source
Expand description

Error envelope + code set (spec §10). Serialized as the MCP tool result body { error: { code, message, suggested_action, details? } } with isError:true (the isError flagging is applied by the MCP layer in M1).

Structs§

ErrorEnvelope
The full envelope serialized to the MCP tool result: { error: { … } }.
ErrorPayload
The error payload (spec §10): { code, message, suggested_action, details? }.

Enums§

ErrorCode
v1 error codes (spec §10, plus DEPRECATED_TOOL from §7). SCREAMING_SNAKE_CASE on the wire. SCRIPT_DISABLED / JOB_NOT_FOUND are v1.1 and intentionally absent.