axiom_graph_add_section

axiom_graph.mcp.server.axiom_graph_add_section(project_root, doc_id, section_id, heading, content=None, parent_id=None, after=None)

Add a new section to an existing DocJSON document.

Appends a section to the end of the document (or after a specified sibling). When parent_id is given, the section is added as a child of that parent section instead of at the top level.

Parameters:
project_root str

Absolute path to the indexed project.

doc_id str

Full doc node ID, e.g. myproject::docs.architecture.

section_id str

Short slug for the new section (e.g. "new-section"). Must be slug-safe (lowercase alphanumeric plus hyphens, no dots).

heading str

Heading text for the new section.

content str | None

Optional markdown content for the new section.

parent_id str | None

Optional dot-path of the parent section to nest under. If omitted, the section is added at the top level.

after str | None

Optional short sibling ID to insert after. If omitted, the section is appended at the end.

Return type:

str