upload_bitable_attachment
Upload a file to Bitable as an image or file attachment. Returns a file_token to store in Attachment-type fields when creating or updating records.
Instructions
[Official API] Upload a file as a Bitable attachment (drive/v1/medias/upload_all with parent_type=bitable_image or bitable_file). Returns file_token suitable for writing into a Bitable Attachment-type field via batch_create/update_bitable_records (the field value should be [{file_token}]).
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": {
"app_token": "<app_token>",
"file_path": "<file_path>"
},
"name": "upload_bitable_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_token | Yes | Bitable app token (the bascn... or basc... id) | |
| file_path | Yes | Absolute path to the file on disk | |
| kind | No | Whether the attachment is an image (bitable_image) or a generic file (bitable_file). Default: file. |