| Name | Type | Description |
|---|---|---|
interrupt* | Interrupt | The interrupt to encode. |
Render the {"interrupt_id", "value"} envelope as a JSON string.
The envelope is used as the arguments payload on both the
function_call and mcp_approval_request items emitted by
:func:emit_interrupts. Wrapping the raw value lets clients render
HITL prompts uniformly across the two channels and lets the
approval-response decode path validate the request id without
server-side storage.
Non-serializable interrupt values fall back to their str()
representation so emission cannot fail at the wire layer.