upload_attachment
Upload a local file to a page and get attachment metadata, including the URL path for accessing the file.
Instructions
Upload a local file to a page. Returns attachment metadata including the /api/files/:id/:name URL path.
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_id": "<page_id>",
"file_path": "<file_path>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Page UUID or slugId | |
| file_path | Yes | Absolute path to a local file |