Documentation Index
Fetch the complete documentation index at: https://docs.microsandbox.dev/llms.txt
Use this file to discover all available pages before exploring further.
AgentClient is the low-level raw transport for talking to agentd through a running sandbox’s relay socket. Most applications should use Sandbox, exec, and fs instead. Use this API when you are building protocol-level tools or higher-level SDK helpers.
All request bodies and response bodies are raw CBOR bytes. The SDK handles framing and correlation ids, but it does not encode or decode the CBOR message body for you.
The raw body is the full CBOR-encoded protocol Message body: v, t, and p. It is not just the inner payload.
Constants
| Name | Value | Description |
|---|---|---|
FLAG_TERMINAL | 0b0000_0001 | Last frame for a correlation id |
FLAG_SESSION_START | 0b0000_0010 | First frame of a streaming session |
FLAG_SHUTDOWN | 0b0000_0100 | Shutdown frame |
AgentClient.connectSandbox()
AgentClient.connect()
request()
stream()
send()
id on the AgentStream returned by stream().
readyBytes()
core.ready frame body as CBOR bytes.
close()
RawFrame
id is the protocol correlation id, flags is the frame flag byte, and body is the CBOR-encoded protocol message body.
AgentStream
id is the protocol correlation id. Pass it to AgentClient.send() for follow-up frames in the same session. close() releases the stream handle early.