edit_block
Edit a file in place: replaces old_string with new_string, which must occur exactly expected_replacements times (default 1); include nearby lines to make it unique. Spreadsheets: range (e.g. Sheet1!A1:C3) and a 2D content array. DOCX: exact XML (for text across formatting use edit_docx). On a mismatch nothing changes and the closest match is shown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | ||
| content | No | ||
| deviceId | No | Computer name or id from list_devices. Optional with one computer online or a default set. | |
| file_path | Yes | ||
| new_string | No | ||
| old_string | No | ||
| workSessionId | No | Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work. | |
| expected_replacements | No |