Upload file to Wiki page
wiki_attachments_uploadUpload one small file and attach it to a wiki page in a single call.
Instructions
Upload one small file and attach it to a wiki page in a single call.
Runs the whole pipeline end to end: opens an upload session sized to data, PUTs the
bytes as a single part, finishes the session, and attaches it to the page. Small-file
path — for large files drive uploadsessions_create / uploadsessions_parts_upload
(chunked) / uploadsessions_finish + attachments_attach yourself. Returns the
newly-attached files.
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_name": "<file_name>",
"data": "<data>"
},
"name": "wiki_attachments_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The file's bytes, base64-encoded. | |
| dry_run | No | Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none). | |
| page_id | Yes | Numeric id of the page to attach the file to. | |
| file_name | Yes | Name to give the uploaded file. |