import_page_file
Download a file from a direct HTTP or HTTPS URL into this page's permanent file library. Supports images, fonts, PDFs and other files; preserves the original bytes. Returns fileId, filename, content type, description and our permanent CDN URL. Optional font metadata returns a settings.fonts entry. Repeated imports of the same URL reuse the saved file and replace its font metadata when supplied. Imported files are owned by the page and copied when the event is cloned. Does not edit or publish the document.
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": {
"target": "<target>",
"url": "<url>",
"description": "<description>"
},
"name": "import_page_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Direct HTTP or HTTPS file download URL | |
| font | No | Optional font metadata. When supplied | |
| target | Yes | Target page resource; kind must be page. | |
| fileName | No | Optional filename. Defaults to the download filename or URL path | |
| description | Yes | Describe the file and its intended use so it can be reused in future edits. |