download_resource
Downloads an embedded image or file attachment from a OneNote page to disk, returning its path, filename, MIME type, size, and image status.
Instructions
Download an embedded image or file attachment from a OneNote page and return { ok, path, file_name, mime_type, size_bytes, is_image }. Downloads the full binary to disk.
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": {
"page": "<page>"
},
"name": "download_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| index | No | ||
| out_dir | No | Optional destination directory |