Document Replace
document_replaceUse this to replace specified matching text in a user-selected local word-processing document. Check the search string, replacement and destination; edits change document content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Apply to all matching paragraphs; default true. | |
| path | Yes | Existing .docx path, or the new document destination when create=true. | |
| create | No | Create a new DOCX at path. Fails if path already exists; do not combine with output. | |
| device | Yes | ReMCP device id returned by list_devices. Required for every device operation. | |
| output | No | Optional output .docx path when editing an existing document. | |
| search | Yes | Paragraph text substring for replace/insert/delete operations. | |
| replacement | Yes | Replacement text for matching document content. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Edit DOCX document structured result for edit_document. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload. | |
| text | Yes | Concise human-readable result of the tool call. |