<span id="浏览器与智能体通信"></span>

# Browser and agent communication

Choose an API for the resource you need to operate on, then prepare the identity, IDs, and parameters listed on its action page.

<span id="选择任务"></span>

## Choose a task

| Task | Page | Description |
| --- | --- | --- |
| Connect to a task browser stream | [Connect to a task browser stream](browser-stream.md) | Receive frames/events over WebSocket and send bounded protocol inputs. |
| Get a short-lived task browser token | [Get a short-lived task browser token](browser-token.md) | Obtain short-lived identity proof for the browser connection of an existing task you own. |
| Browser messages and input | [Browser messages and input](browser-wire.md) | WebSocket upgrade waits for an internal ready signal. The handler consumes it; it is not necessarily the first client event. |
| Restricted runtime agent build commands | [Restricted runtime agent build commands](builder-runtime.md) | Execute build operations allowed by the current trusted run. |
| Identity, errors, and environments | [Identity, errors, and environments](errors-environments.md) | Browser tokens restore identity, while service admission still uses the current Role/lifecycle. Task ownership, conversation, sandbox tools, and current agent.use must all be valid. |
| Restricted runtime building and skill snapshots | [Restricted runtime building and skill snapshots](runtime-contracts.md) | Outer runtime proof must allow Agent Builder. The gateway still validates original task/manifest/tool sets per call; operation cannot expand admission scope. |
| Download skill files bound to a runtime as ZIP | [Download skill files bound to a runtime as ZIP](runtime-skill-files.md) | Set `MOI_ENDPOINT` to the product API prefix `https://api.moi.matrixorigin.cn/v5`; use the corresponding product API URL for a dedicated deployment. |

```{toctree}
:hidden:
:maxdepth: 1

Connect to a task browser stream <browser-stream>
Get a short-lived task browser token <browser-token>
Browser messages and input <browser-wire>
Restricted runtime agent build commands <builder-runtime>
Identity, errors, and environments <errors-environments>
Restricted runtime building and skill snapshots <runtime-contracts>
Download skill files bound to a runtime as ZIP <runtime-skill-files>
```
