get_doc_named_styles
Reads a Google Doc’s named style defaults and returns them as a theme dictionary so you can compare named styles with actual paragraph formatting and detect direct overrides.
Instructions
Read a Google Doc's named style defaults and return them as a theme dict.
Named styles are set via Format > Paragraph styles > Update X to match in the Google Docs UI. They define the default appearance for each style type and are inherited by paragraphs that have no explicit overrides.
Most docs leave named styles at Google's defaults even when paragraphs look custom — because humans usually format text directly without updating named styles. In that case this tool returns Google's defaults (Arial/Roboto etc.), which may not reflect the doc's actual appearance. Use get_doc_theme to read what the doc actually looks like based on applied paragraph styles.
Calling both tools and comparing results is useful: if they agree, named styles are in sync with actual content; if they differ, styles were applied directly to paragraphs without updating named style definitions.
Args: doc_id: The Google Doc file ID.
Returns: Theme dict keyed by named style type. Only entries with at least one non-default field are included. Returns an empty dict if named styles are at Google's defaults.
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": {
"doc_id": "<doc_id>"
},
"name": "get_doc_named_styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||