attach_media_to_record
Attach a file from the MyFile library to a field of type file or image of a specific record. Use it for attached_files instead of update_record when the field is of type file/image.
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_id": "<app_id>",
"entity_id": "<entity_id>",
"record_id": "<record_id>",
"field_id": "<field_id>",
"my_file_id": "<my_file_id>"
},
"name": "attach_media_to_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | Project ID (from list_projects) | |
| field_id | Yes | ID of a field of type file or image | |
| entity_id | Yes | Form ID | |
| record_id | Yes | Record ID | |
| my_file_id | Yes | media_id of the attached MyFile |