Upload To My Files
upload_to_my_filesUpload a local file into your private Canvas storage, place it in an optional folder, and get the new file ID. A preview and confirm token let you check the upload before it is carried out.
Instructions
Upload a local file into your personal Canvas storage. Only you can see it until you share or submit it. Returns the new file's ID. [NEEDS CONFIRMATION: call it once for a preview and a confirm_token, show the preview to the user, and only if they say yes call it again with the same arguments, confirm=true and that confirm_token. Apps that can ask the user directly show a confirmation instead.]
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_path": "<file_path>"
},
"name": "upload_to_my_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set to true together with confirm_token to carry out a request you already previewed. | |
| file_path | Yes | Absolute path of the local file to upload, e.g. "C:/Users/me/essay.pdf". | |
| confirm_token | No | The one-time token from the preview. Only use it after the user has said yes. | |
| parent_folder_path | No | Folder path inside your storage, e.g. "notes/spring". Omit for the top level. |