Pages: set body
pages_set_bodyReplace the entire body text of a .pages document, which resets body formatting. Preview the change on a throwaway copy with dry_run=true before overwriting the file.
Instructions
Replace the entire body text of a .pages document (needs Pages + GUI session). Body formatting is reset. dry_run=true previews the change on a copy without touching the file. Use only to replace the entire body text; it resets body formatting, so warn the user. Prefer pages_replace_all or pages_fill_placeholders.
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": {
"path": "<path>",
"body": "<body>"
},
"name": "pages_set_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The new body text; paragraphs separated by newlines. Resets body formatting. | |
| path | Yes | Path to the .pages document (absolute, or starting with ~). | |
| dry_run | No | true = make the change on a throwaway copy, run every check, and return what would change; the file itself is not touched. Use it before broad or risky edits and show the user. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||