format_numbering
Change a DOCX paragraph’s direct numbering to remove it, copy from another paragraph, or link to an existing numbering definition.
Instructions
Change one DOCX body paragraph’s direct numbering reference. Use remove=true to drop direct w:numPr, match_paragraph_id to adopt another paragraph’s explicit numbering, or num_id with ilvl to reference an existing numbering definition. This tool does not create numbering definitions or change style-inherited numbering. Effective edits emit a native w:pPrChange; identical requests are no-ops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ilvl | No | Existing numbering level for num_id; requires num_id. | |
| num_id | No | Existing positive decimal w:numId from this DOCX; requires ilvl. | |
| remove | No | Set true to remove the target paragraph’s direct w:numPr. | |
| file_path | No | Path to the DOCX or ODT file. | |
| google_doc_id | No | Google Doc ID or URL (alternative to file_path). Extract from URL: docs.google.com/document/d/{ID}/edit | |
| match_paragraph_id | No | Copy this paragraph’s complete direct num_id and ilvl to the target. | |
| target_paragraph_id | Yes | Target paragraph anchor returned by read_file. |