Create list in Google Doc
create_bulleted_listTurns paragraphs in a Google Doc range into bulleted, numbered, or checkbox list items for structured, scannable documents.
Instructions
Turn every paragraph that overlaps the index range [startIndex, endIndex) of a Google Doc into a list item: listType "bulleted" (default), "numbered" (1., a., i.) or "checkbox". Consecutive paragraphs become one list; to build a list from new content, append or insert the items as separate lines ("\n"-separated) first, then call this with their range. Leading tab characters in the paragraphs are converted into nesting levels and removed, which shifts later indexes; otherwise indexes are unchanged. Get paragraph indexes from get_document’s structure outline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endIndex | Yes | End of the range (exclusive); must be greater than startIndex. | |
| listType | No | bulleted (•), numbered (1. 2. 3.) or checkbox (☐). Default: bulleted. | bulleted |
| 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. | |
| startIndex | Yes | Start of the range (inclusive). Get exact indexes from get_document or find_text. |