Attach uploaded files to Wiki page
wiki_attachments_attachAttach file(s) from finished upload sessions to a wiki page.
Instructions
Attach file(s) from finished upload sessions to a wiki page.
The final step of the upload pipeline: create the session (uploadsessions_create),
send the bytes (uploadsessions_parts_upload), close it (uploadsessions_finish),
then attach here. For one small file, attachments_upload runs the whole pipeline in
a single call. 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>",
"session_ids": "<session_ids>"
},
"name": "wiki_attachments_attach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 to. | |
| session_ids | Yes | ``session_id`` of each FINISHED upload session to attach. |