docs_format
Formats selected text, sections, or entire Google Docs with bold, italic, fonts, colors, links, alignment, lists, indents, and spacing, then verifies changes against the saved document.
Instructions
Format existing text in a Google Doc like a person would: select a target (exact text, a section under a heading, or the whole document) and apply bold/italic/underline/strikethrough, font, size, colour, highlight, link, paragraph style, alignment, list, indent or line spacing. Verified against the saved document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Format the whole document. | |
| doc | Yes | Google Docs URL or document id. | |
| text | No | Exact text to format (use this, section, or all). | |
| format | Yes | Formatting to apply to the selection. Toggles take true/false. | |
| account | No | Which signed-in Google account to use: an index as in /u/N/ URLs (0 = first account) or an email address. Omit for the browser default. Use this for documents owned by a second (e.g. school) account. | |
| section | No | Heading text: formats the paragraphs under that heading. | |
| matchCase | No | ||
| occurrence | No | Which match of text: 1 = first (default), -1 = last. |