download_resource
Save an image or attached file from a OneNote page to disk by passing the page ID and resource ID or URL; use read_page to get the resource reference.
Instructions
Save an image or attached file from a page to disk. Get resource ids/URLs from read_page (…/resources//$value or /content).
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": {
"pageId": "<pageId>",
"resource": "<resource>"
},
"name": "download_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | The page that contains the resource | |
| resource | Yes | Resource id, or the resource URL from read_page | |
| outputPath | No | File path to write. Defaults to ONENOTE_DOWNLOAD_DIR/<resource id> |