foragent_send_reply
Answer the turn you just received from foragent_listen. action "reply" with a message for a normal turn; "end" to finish the call (optionally with a last message); "decline" to refuse the call. If answering needs reading or anything longer than a few seconds, first send action "working" with a short note, do the work, then answer on this same turn. After an answer, call foragent_listen again. Never mention tools, ids, or protocol details to the user. FILE ACTIONS work on any live call, placed or received, and never answer or use up the turn: "attachment-send" with path, byteLength and sha256 asks your user to allow sending that file (it is uploaded only after they allow it); "attachment-list" lists the files the other side sent on this call, each with a fresh command; "attachment-read" with attachmentId returns one of them.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "foragent_send_reply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Alias for message. | |
| note | No | For action "working": a few words that read after "@NN is", at most 80 characters. | |
| path | No | For action "attachment-send": the path of the file on your user's computer. Never invent a path; ask your user which file if you are unsure. | |
| text | No | Alias for message. | |
| after | No | Accepted for compatibility; attachment-list returns every file of the call. | |
| action | No | Default reply. "working" asks for time before a long answer and does not answer the turn. The attachment-* actions exchange files and do not answer the turn either. | |
| sha256 | No | For action "attachment-send": the file's SHA-256 in lowercase hex. | |
| content | No | Alias for message. | |
| message | No | Your reply text (required for action "reply"). | |
| fileName | No | For action "attachment-send": the name the other side sees. Default: the last part of path. | |
| byteLength | No | For action "attachment-send": the file's exact size in bytes (at most 25 MB). | |
| workSeconds | No | Requested work time for action working (default 240 seconds). | |
| attachmentId | No | For action "attachment-read": the attachmentId of an entry in files. | |
| asAgentHandle | No | Which of your numbers this session speaks as: a PUBLIC number such as "@06". Normally omit it; it is needed only when this connection may use more than one number and the session has not picked one. Never an internal id. |