# info

> Return document summary info including word, character, paragraph, heading, table, image, comment, tracked-change, SDT-field, list, and page counts, plus outline and capabilities.



- Member path: `doc.info(…)`
- Mutates document: no
- Idempotency: `idempotent`
- Supports tracked mode: no
- Supports dry run: no

## Expected result

Returns a DocumentInfo object with counts (words, characters, paragraphs, headings, tables, images, comments, trackedChanges, sdtFields, lists, and optionally pages when pagination is active), document outline, capability flags, and revision.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {},
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {},
  "type": "object",
  "properties": {
    "counts": {
      "type": "object",
      "properties": {
        "words": {
          "type": "integer"
        },
        "characters": {
          "type": "integer"
        },
        "paragraphs": {
          "type": "integer"
        },
        "headings": {
          "type": "integer"
        },
        "tables": {
          "type": "integer"
        },
        "images": {
          "type": "integer"
        },
        "comments": {
          "type": "integer"
        },
        "trackedChanges": {
          "type": "integer"
        },
        "sdtFields": {
          "type": "integer"
        },
        "lists": {
          "type": "integer"
        },
        "pages": {
          "type": "integer"
        }
      },
      "additionalProperties": false,
      "required": [
        "words",
        "characters",
        "paragraphs",
        "headings",
        "tables",
        "images",
        "comments",
        "trackedChanges",
        "sdtFields",
        "lists"
      ]
    },
    "outline": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "level": {
            "type": "integer"
          },
          "text": {
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "required": [
          "level",
          "text",
          "nodeId"
        ]
      }
    },
    "capabilities": {
      "type": "object",
      "properties": {
        "canFind": {
          "type": "boolean"
        },
        "canGetNode": {
          "type": "boolean"
        },
        "canComment": {
          "type": "boolean"
        },
        "canReplace": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "required": [
        "canFind",
        "canGetNode",
        "canComment",
        "canReplace"
      ]
    },
    "revision": {
      "type": "string"
    },
    "styles": {
      "type": "object",
      "properties": {
        "paragraphStyles": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "styleId": {
                "type": "string",
                "description": "Style identifier (e.g. 'Normal', 'Heading1', 'BodyText')."
              },
              "count": {
                "type": "integer",
                "description": "Number of paragraphs using this style."
              },
              "fontFamily": {
                "type": "string",
                "description": "Font family used by text in this style."
              },
              "fontSize": {
                "type": "number",
                "description": "Font size in half-points used by text in this style."
              }
            },
            "additionalProperties": false,
            "required": [
              "styleId",
              "count"
            ]
          },
          "description": "Paragraph styles in use, sorted by frequency (most common first)."
        }
      },
      "additionalProperties": false,
      "required": [
        "paragraphStyles"
      ],
      "description": "Styles currently in use in the document."
    },
    "defaults": {
      "type": "object",
      "properties": {
        "fontFamily": {
          "type": "string",
          "description": "Most common body text font family."
        },
        "fontSize": {
          "type": "number",
          "description": "Most common body text font size in half-points."
        },
        "styleId": {
          "type": "string",
          "description": "Most common body paragraph style ID."
        }
      },
      "additionalProperties": false,
      "description": "Document's default body text formatting. Use these values when creating new content to match existing style."
    }
  },
  "additionalProperties": false,
  "required": [
    "counts",
    "outline",
    "capabilities",
    "revision"
  ]
}
```

## Pre-apply throws

- None

## Non-applied receipt codes

- None

