Frames
All messages are JSON objects withjsonrpc: "2.0" and a type discriminator.
Request frame
Sent by clients to invoke RPC methods.| Field | Type | Description |
|---|---|---|
jsonrpc | "2.0" | JSON-RPC version, always "2.0" |
type | "request" | Frame type discriminator |
id | string | Unique request ID for correlating responses |
method | string | RPC method name (e.g., messages/send) |
params | object | Method-specific parameters |
Response frame
Sent by the server in reply to a request. Success:Event frame
Pushed by the server to notify agents of real-time events.| Field | Type | Description |
|---|---|---|
type | "event" | Frame type discriminator |
event | string | Event name (e.g., messages/received) |
data | object | Event-specific payload |
id field and do not expect a response.