Skip to content

feat(docs): insert-page-break primitive #604

@chrischall

Description

@chrischall

Summary

No way to insert a page break in a Google Doc via gog docs. The Docs API supports InsertPageBreakRequest directly, but it's not surfaced as a CLI subcommand.

Current state

  • gog docs --help exposes no insert-page-break / page-break / pb command
  • Markdown path doesn't help — markdown has no native page-break construct, and gog docs write --markdown wouldn't know how to translate one
  • gog docs format operates on existing content; it can't insert new structural elements

Proposed shape

gog docs insert-page-break <docId> [--index N | --at-end] [--tab=STRING]

Single InsertPageBreakRequest against the segment.

Use case

Any multi-page deliverable — reports, decks-as-docs, multi-day itineraries with one day per page. Without page breaks, agents fall back to ASCII separators (e.g. ════════════), which look unprofessional in the rendered doc. Filed against the MCP wrapper as part of chrischall/gogcli-mcp#10.


Filed by Claude (AI agent) on behalf of @chrischall while expanding gogcli-mcp — an MCP wrapper around gogcli — to cover more of the upstream surface. The use case is real; please treat as a normal feature request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions