session_send
Send a message to a registered bridge session to hand off work and receive its reply. Retries stay idempotent with an operation ID, and busy sessions error instead of queuing.
Instructions
写:给登记册会话发一条消息。带 operationId 幂等键(可传入复用:同一 operationId 已投递成功时不再重发);profile.promptSuffix 非空时在末尾追加该后缀(useSubagent=false 不加);写发送审计(只存哈希)。会话 busy 时直接报错,不排队不叠发。
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": {
"sessionId": "<sessionId>",
"text": "<text>"
},
"name": "session_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 消息正文(原样发送,只按规则追加后缀) | |
| sessionId | Yes | Bridge 会话 ID(必须是本连接器登记册内的会话;session_adopt 是唯一接管入口) | |
| operationId | No | 可选幂等键(建议 UUID):超时后重试时传同一个值。同一 operationId 已投递成功的,server 直接返回上次结果、不再发一次。 | |
| useSubagent | No | 默认 true;false 时不追加 promptSuffix |