Insert page break into Google Doc
insert_page_breakInsert a page break at a chosen index in a Google Doc so the following content starts on a new page. Re-read the document afterward since all later indexes shift.
Instructions
Insert a page break at an index of a Google Doc, so the content after it starts on a new page. The index must be inside an existing body paragraph (not inside a table, header, footer or footnote); to break before a paragraph use its startIndex from get_document or find_text. Inserting shifts every later index, so re-read the document with get_document before further index-based edits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | A Google Docs index (UTF-16 offset). The body starts at index 1. Get exact indexes from get_document (structure) or find_text. | |
| documentId | Yes | The Google Docs document ID (the part between /d/ and /edit in the document URL). A full Google Docs URL is also accepted. |