message_agent
Sends text to a running or idle jcode agent: active sessions receive it as a soft interrupt (urgent skips pending tool calls), while idle sessions start a new turn.
Instructions
Send text to an agent. A running agent gets it as a soft interrupt (urgent=true skips pending tool calls); an idle agent starts a new turn with it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"text": "<text>"
},
"name": "message_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | jcode session id returned by spawn_agent | |
| text | Yes | ||
| urgent | No |