google-docs

Read and edit Google Docs with index-aware text and table operations.

Updated Dec 17, 2024
One-click install
npx skills add https://github.com/LAF-US/IDAHO-VAULT --skill google-docs-laf-us
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-docs
Source: https://github.com/LAF-US/IDAHO-VAULT/tree/main/.codex/plugins/cache/openai-curated/google-drive/314574a046f21938025ae443f9c6dbbd0c2c9b7a/skills/google-docs
Command: npx skills add https://github.com/LAF-US/IDAHO-VAULT --skill google-docs-laf-us

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables precise reading, editing, and in-place formatting of Google Docs within the document context by exposing index-aware reads and updates, reducing manual copy-paste and drift between versions.

Core Features & Use Cases

  • Read and inspect doc text and structure using get_document and related APIs to understand content and layout.
  • Find and anchor exact text ranges with find_document_text_range for reliable, targeted edits.
  • Edit content in place, modify tables, and apply style-preserving batch updates with batch_update_document to maintain formatting consistency.
  • Use cases include extracting content for review, updating sections to reflect new information, and aligning formatting across a document or a set of documents.

Quick Start

Ask it to fetch a Google Doc by title and apply a style-preserving update to its introduction.

Frequently Asked Questions about google-docs

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

FAQPage Schema
How do I edit Google Docs programmatically without losing existing formatting?

To edit Google Docs programmatically while preserving formatting, use style-preserving batch updates via batch_update_document. This applies targeted text modifications without overwriting the document's existing layout.

How do I locate specific text ranges in a Google Doc for targeted edits?

Use find_document_text_range to locate specific text ranges in a Google Doc. This index-aware operation anchors exact text positions, ensuring reliable and targeted section edits.

Can I extract and read content from Google Docs tables using an API?

Yes, you can extract and read content from Google Docs tables. Use get_document to inspect document text and structure, enabling precise table handling and content extraction.

What is the best way to extract a specific text range from a Google Doc?

The best way to extract a specific text range from a Google Doc is using get_document_text_range. This function enables precise, index-aware reads to pull exact content sections.

How do I rewrite specific sections of a Google Doc in place?

To rewrite specific sections of a Google Doc in place, anchor the exact text using paragraph indexes and apply style-preserving writes with batch_update_document. This ensures section replacement without drift.