box_metadata_update_instance_on_file_tool
Updates the metadata template instance on a file, setting values for specified fields and optionally removing fields omitted from the update.
Instructions
Update the metadata template instance associated with a specific file.
Args: ctx (Context): The context object containing the request and lifespan context. file_id (str): The ID of the file to update the metadata on. template_key (str): The key of the metadata template. metadata (dict): The metadata to update. remove_non_included_data (bool): If True, remove data from fields not included in the metadata.
Returns: dict: The response from the Box API after updating the metadata.
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": {
"file_id": "<file_id>",
"template_key": "<template_key>",
"metadata": "<metadata>"
},
"name": "box_metadata_update_instance_on_file_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| metadata | Yes | ||
| template_key | Yes | ||
| remove_non_included_data | No |