miro_update_document_from_file
Replace the file on an existing Miro document item with a new local file while preserving the item's identity. Use to update PDFs, presentations, spreadsheets, and other documents without creating new items.
Instructions
Replace the file on an existing document item with a new local document file.
USE WHEN: User says "replace this document", "update the PDF", "swap the file on this document". Use this to change the file on an existing document item without creating a new one. For updating metadata only (title, position), use miro_update_document instead.
PARAMETERS:
board_id: Required
item_id: Required. The existing document item to update.
file_path: Absolute path to the new document file (required). Supports: pdf, doc, docx, ppt, pptx, xls, xlsx, txt, rtf, csv. Max 6 MB.
title: New document title
x, y: New position
parent_id: Frame ID to move document into
NOTE: The item must already exist as a document. The file must exist on the local filesystem.
RELATED: To create a new document from file, use miro_upload_document. To update metadata only, use miro_update_document.
VOICE-FRIENDLY: "Replaced document file on item"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board_id | Yes | Board ID | |
| item_id | Yes | Document item ID to update | |
| file_path | Yes | Absolute path to the new document file on disk | |
| title | No | New document title | |
| x | No | New X position | |
| y | No | New Y position | |
| parent_id | No | Frame ID to move document into |