presign_file_upload
Mint a presigned multipart-POST URL to attach a file to a card. Returns the file envelope (file_id, status='pending') plus upload_url, upload_url_fields (signed policy fields the client must include in the multipart form), and upload_url_expires_in. POST the bytes directly to upload_url as multipart/form-data, including every entry from upload_url_fields and the file under a file field. Don't go through the MCP channel for the bytes. Then call commit_file to finalize. Mirrors POST /v1/files: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": {
"card_id": "<card_id>",
"filename": "<filename>",
"content_type": "<content_type>"
},
"name": "presign_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_id | Yes | ||
| filename | Yes | ||
| size_bytes | No | ||
| content_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||