send_document
Sends a file from an approved directory as a Telegram document, with an optional caption and target chat ID, so agents can share documents securely.
Instructions
Send a file from an allowed directory as a document.
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": {
"path": "<path>"
},
"name": "send_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| caption | No | ||
| chat_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |