pine_upload_attachment
Upload a file to a Pine AI session and obtain attachment metadata to include the file in a message.
Instructions
Upload a file (bill, screenshot, document) for a Pine AI session.
Returns attachment metadata — pass it to pine_send_message via the attachments parameter to include the file in a message.
Args: file_path: Absolute path to the file to upload.
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": "pine_upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |