get_wiki_attachment
Read one file attached to a wiki page — its bytes, base64-encoded — identifying the page by 'pageId' or by 'spaceKey' + 'title' and the file by 'filename' as get_wiki_page lists it. This is how a file is copied from one page to another: read it here, write it with add_wiki_attachment. The bytes travel as text through the conversation and cost roughly a third more than the file itself, so there is a size ceiling; for anything larger — or for putting the file on disk — the pm-files MCP server saves it to a path instead. Reading needs only permission to see the page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Exact page title, when identifying the page by title. | |
| pageId | No | Page id (as returned by search_wiki). | |
| filename | Yes | File name, as listed by get_wiki_page. | |
| spaceKey | No | Space key, when identifying the page by title. |