Download Page Attachment
page_download_attachmentSave a Yandex Wiki page attachment directly to a local file without loading it into conversation. Use the attachment ID to download PDFs, archives, or large files; overwrite enables replacement.
Instructions
Download a Yandex Wiki page attachment to a local file: the bytes stream to disk without a size cap and never enter the conversation — the counterpart to page_read_attachment, for getting the artifact itself (a PDF, an archive, a large export). Writes atomically; refuses to replace an existing file unless overwrite is true. File ids come from page_get_attachments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Wiki page slug or full Wiki URL. Provide either page_id or slug. | |
| file_id | Yes | Attachment (file) numeric ID, as listed by page_get_attachments. | |
| page_id | No | Wiki page numeric ID. Provide either page_id or slug. | |
| save_to | Yes | Local filesystem path (a file, not a directory) to save the attachment to. Missing parent directories are created; '~' expands to the home directory. | |
| overwrite | No | Whether an existing file at save_to may be replaced. When false (default), the call fails instead of overwriting. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| file_id | Yes | ||
| page_id | Yes | ||
| mimetype | No | ||
| size_bytes | Yes |