The /google-docs command enables you to create and edit Google Docs documents. Perfect for:

  • Creating new documents
  • Adding text content
  • Formatting documents
  • Creating lists
  • Organizing content

Basic Usage

Use the command to interact with Google Docs:

/google-docs create document "Project Proposal"
/google-docs add "Introduction text" to document 1jjk1pwboxpelntexnhDiOYXxbT4LIJR5wtVGsmHqS7s
/google-docs create bulleted list in document at position 16 to 28

Key Features

Document Creation

  • Create new documents
  • Set document title
  • Get document ID
  • Access revision info

Text Insertion

  • Add text at specific positions
  • Insert paragraphs
  • Add section headers
  • Include line breaks

Formatting

  • Create bulleted lists
  • Format paragraphs
  • Apply text styles
  • Structure content

Batch Updates

  • Multiple edits at once
  • Efficient modifications
  • Structured changes

Example Commands

Create Document

/google-docs create new document titled "Meeting Notes"

Add Text

/google-docs insert "Main Title\n\n" at position 1 in document ABC123

Create Structure

/google-docs add sections "Introduction", "Main Content", "Conclusion" to document ABC123

Format as List

/google-docs make bullet list from position 16 to 28 in document ABC123

Document Creation Process

Step 1: Create Document

{
  "title": "Project Proposal"
}

Step 2: Add Content

{
  "requests": [
    {
      "insertText": {
        "location": { "index": 1 },
        "text": "Document content here\n\n"
      }
    }
  ]
}

Index Positioning

  • Index 1: Start of document
  • Each character increases index by 1
  • Line breaks (\n) count as 1 character
  • Plan positions based on text length

Bullet List Types

  • BULLET_DISC_CIRCLE: Standard bullets
  • BULLET_ARROW_DIAMOND: Arrow bullets
  • NUMBERED_DECIMAL_ALPHA: Numbered lists

Important Notes

Index Rules

  • Index must be less than segment end
  • If segment ends at 100, use 99 or lower
  • Calculate positions carefully

Sharing Documents

To share documents:

  1. Use Google Drive integration
  2. Use command: /googledrive share "filename" with email@example.com
  3. Grant appropriate permissions

Tips

  • Plan document structure before creation
  • Track character positions for edits
  • Use batch updates for efficiency
  • Remember line breaks affect positioning

The /google-docs command enables you to create and edit Google Docs documents. Perfect for:

  • Creating new documents
  • Adding text content
  • Formatting documents
  • Creating lists
  • Organizing content

Basic Usage

Use the command to interact with Google Docs:

/google-docs create document "Project Proposal"
/google-docs add "Introduction text" to document 1jjk1pwboxpelntexnhDiOYXxbT4LIJR5wtVGsmHqS7s
/google-docs create bulleted list in document at position 16 to 28

Key Features

Document Creation

  • Create new documents
  • Set document title
  • Get document ID
  • Access revision info

Text Insertion

  • Add text at specific positions
  • Insert paragraphs
  • Add section headers
  • Include line breaks

Formatting

  • Create bulleted lists
  • Format paragraphs
  • Apply text styles
  • Structure content

Batch Updates

  • Multiple edits at once
  • Efficient modifications
  • Structured changes

Example Commands

Create Document

/google-docs create new document titled "Meeting Notes"

Add Text

/google-docs insert "Main Title\n\n" at position 1 in document ABC123

Create Structure

/google-docs add sections "Introduction", "Main Content", "Conclusion" to document ABC123

Format as List

/google-docs make bullet list from position 16 to 28 in document ABC123

Document Creation Process

Step 1: Create Document

{
  "title": "Project Proposal"
}

Step 2: Add Content

{
  "requests": [
    {
      "insertText": {
        "location": { "index": 1 },
        "text": "Document content here\n\n"
      }
    }
  ]
}

Index Positioning

  • Index 1: Start of document
  • Each character increases index by 1
  • Line breaks (\n) count as 1 character
  • Plan positions based on text length

Bullet List Types

  • BULLET_DISC_CIRCLE: Standard bullets
  • BULLET_ARROW_DIAMOND: Arrow bullets
  • NUMBERED_DECIMAL_ALPHA: Numbered lists

Important Notes

Index Rules

  • Index must be less than segment end
  • If segment ends at 100, use 99 or lower
  • Calculate positions carefully

Sharing Documents

To share documents:

  1. Use Google Drive integration
  2. Use command: /googledrive share "filename" with email@example.com
  3. Grant appropriate permissions

Tips

  • Plan document structure before creation
  • Track character positions for edits
  • Use batch updates for efficiency
  • Remember line breaks affect positioning