Upload a PDF or photo
upload_fileFor the user's own PDF (to mail as is) or attachments (evidence, photos). Returns file_id and a one-time upload_url: PUT the raw bytes there (e.g. curl -T ./letter.pdf "<upload_url>"), then pass file_id as pdf or in attachments. Small files can instead be passed as base64 directly in pdf/attachments, and public files as an https URL. PDF, PNG or JPEG, up to 25 MB.
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": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | ||
| account_key | No | Only for clients without OAuth: a saved sfm_ key. Leave out when connected. |