Format text and paragraphs
docs_formatFormat Google Docs text and paragraphs—bold, italics, fonts, colors, links, headings, alignment, spacing, bullets, numbering—with precise field masks preserving unmentioned styles. Supports dry-run.
Instructions
Bold/italic/underline, font, size, colours, links; paragraph named styles (headings), alignment, spacing; bullets and numbering. Uses a precise field mask, so styling you do not mention is left alone. Supports dryRun.
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": {
"document": "<document>",
"operations": "<operations>"
},
"name": "docs_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab id or title, for documents with several tabs. Reads default to the first tab; writes to a multi-tab document REQUIRE this rather than guessing. Get ids from docs_describe. | |
| dryRun | No | Return the exact requests that would be sent, in the order they would be applied, and send nothing. | |
| account | No | Google account to act as. Optional when one is authorised or a default is set. | |
| document | Yes | Document URL or file id. Both accepted. | |
| operations | Yes | Formatting operations over index ranges. |