send_local_document
Sends a local file as a Telegram document, enabling AI agents to deliver code, logs, PDFs, reports, and archives to users.
Instructions
Send any local file (code, reports, logs, zip, pdf) as a general document.
傳送本機任何檔案給使用者,涵蓋程式碼、日誌、PDF 與壓縮檔等。
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": {
"file_path": "<file_path>"
},
"name": "send_local_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | ||
| chat_id | No | ||
| file_path | Yes | ||
| parse_mode | No | Markdown | |
| inline_buttons | No | ||
| disable_notification | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |