agentio-gdocs

List, read, create, and edit Google Docs via the agentio CLI.

2|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/plosson/agentio --skill agentio-gdocs-plosson
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: agentio-gdocs
Source: https://github.com/plosson/agentio/tree/main/claude/skills/agentio-gdocs
Command: npx skills add https://github.com/plosson/agentio --skill agentio-gdocs-plosson

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with Google Docs from scripts, CI pipelines, or LLM agents normally requires writing OAuth flows and Docs API client code. This Skill exposes document export, creation, listing, and raw batchUpdate operations as plain CLI commands that agents and shell scripts can call directly. ## Core Features & Use Cases - Read and Export Documents: Export any Google Doc as Markdown to stdout or a file, or as .docx, using a document ID or full URL. - Create Documents from Markdown: Create new Google Docs from inline Markdown, piped stdin, or into a specific Drive folder. - Inspect Structure and Tabs: Dump the full Docs API JSON representation, list document tabs, and extract body indices for precise edits. - Raw batchUpdate Escape Hatch: Execute arbitrary documents.batchUpdate requests (inline JSON or from a file) for formatting, insertion, and multi-tab edits. - Use Case: An agent in a GitHub Actions workflow reads a spec document as Markdown, generates a summary, and creates a new Google Doc with the results inside a shared Drive folder. ## Quick Start Use the agentio gdocs skill to export the Google Doc at this URL as Markdown and print it to stdout.

Frequently Asked Questions about agentio-gdocs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export a Google Doc as Markdown from the command line?▼

Run agentio gdocs get with the document ID or full Google Docs URL, and the document prints as Markdown to stdout. Add --output to save to a file, or --format docx --output to export as a Word file.

How to create a Google Doc from Markdown in a script?▼

Use agentio gdocs create with --title and --content for inline Markdown, or pipe content via stdin, for example cat draft.md | agentio gdocs create --title "Q4 Plan". Use --folder to place it in a specific Drive folder.

Can I edit a specific tab in a multi-tab Google Doc?▼

Yes. List tab IDs with agentio gdocs tabs, then pass --tab to agentio gdocs structure to get indices relative to that tab. In batch requests, include the tabId in every location or range, otherwise edits land in the first tab.

How do I search Google Docs by name or owner from the CLI?▼

Use agentio gdocs list with --query and Drive search syntax, such as name contains 'report', 'me' in owners, or modifiedTime > '2024-01-01'. Combine conditions with 'and' or 'or' and control result count with --limit.

What can I do when the high-level gdocs commands are not enough?▼

Use agentio gdocs batch, which accepts any array of Docs API batchUpdate Request objects as inline JSON or from a file. This covers formatting, insertion, headers, and other operations documented in the Google Docs API reference.