Get File Metadata
get_file_metadataRetrieve a Canvas file’s name, size, content type, created and updated dates, and download URL by file ID; use it to inspect metadata before downloading.
Instructions
Get details for one file: name, size, content type, created and updated dates, and download URL. Read-only. Use download_file to save it locally.
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>"
},
"name": "get_file_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File ID (numeric string). Get it from list_course_files, list_my_files or list_group_files. |