update_attachment
Modify an existing attachment's filename, MIME type, memo association, or external URL by providing its attachment ID and a field mask to specify what to update.
Instructions
Update an existing attachment
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": {
"attachment_id": "<attachment_id>",
"update_mask": "<update_mask>"
},
"name": "update_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | New related memo resource name | |
| type | No | New MIME type | |
| filename | No | New filename | |
| update_mask | Yes | Comma-separated list of fields to update (e.g., "filename,type,externalLink") | |
| attachment_id | Yes | The attachment ID to update | |
| external_link | No | New external URL |