Chat with agent
chat_with_agentSend one message to a Synapse agent and return its reply. Pass the returned session_id to continue the same conversation. An agent that needs a tool call approved stops with status awaiting_approval: answer it with answer_tool_approval.
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": {
"message": "<message>"
},
"name": "chat_with_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Agent id or exact name; the workspace's first agent if omitted. | |
| message | Yes | ||
| session_id | No | Continue this conversation. | |
| wait_seconds | No | Seconds to wait for the reply. The turn carries on after the wait. |