copy_range
Copies cell values, formulas, and styles from one worksheet range to another, with optional dry-run validation to check placement and formatting before writing to the workbook.
Instructions
Copy values/formulas and styles, including General, with saved-value checks.
Limit 250000 source cells; the full target must fit Excel's grid. Merged-cell
intersections and failed relative-formula translations are refused. dry_run
checks an isolated candidate, including targeted XLSX preservation.
Source cell types are retained and checked: literal '=' or error-looking text
stays text; only genuine formula cells undergo relative translation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filepath": "<filepath>",
"sheet_name": "<sheet_name>",
"source_start": "<source_start>",
"source_end": "<source_end>",
"target_start": "<target_start>"
},
"name": "copy_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| filepath | Yes | Reuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing. | |
| sheet_name | Yes | ||
| source_end | Yes | ||
| source_start | Yes | ||
| target_sheet | No | ||
| target_start | Yes |