# interrupt_arguments_json

> **Function** in `langchain_azure_ai`

📖 [View in docs](https://reference.langchain.com/python/langchain-azure-ai/agents/hosting/_converters/_hitl/interrupt_arguments_json)

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.

## Signature

```python
interrupt_arguments_json(
    interrupt: Interrupt,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `interrupt` | `Interrupt` | Yes | The interrupt to encode. |

## Returns

`str`

The JSON string to use as the wire ``arguments`` field.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-azure/blob/7a6a664d617264df8dcb12fcfb1bacc09f21d504/libs/azure-ai/langchain_azure_ai/agents/hosting/_converters/_hitl.py#L201)