box_metadata_get_instance_on_file_tool
Retrieve the metadata template instance attached to a specific file using its file ID and template key. Use it to read custom metadata values stored on that file.
Instructions
Get 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 get the metadata from. template_key (str): The key of the metadata template.
Returns: dict: The metadata instance associated with the file.
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>"
},
"name": "box_metadata_get_instance_on_file_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| template_key | Yes |