24 Commits

Author SHA1 Message Date
Taylor Wilsdon
94b37de421 ruff 2026-03-15 17:29:20 -04:00
Rein Lemmens
a9db471345 Add create_bullet_list operation to batch_update_doc
Exposes native Google Docs createParagraphBullets and
deleteParagraphBullets APIs via the batch operation manager.
Supports UNORDERED (bullets), ORDERED (numbered), and NONE
(remove formatting) list types with optional nesting levels.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:06:34 +01:00
Rein Lemmens
38ad39bea6 Add named_style_type support to update_paragraph_style operation
Allows setting TITLE and SUBTITLE paragraph styles directly, in addition
to the existing heading_level (0-6) parameter. The new named_style_type
parameter accepts all Google Docs named styles: NORMAL_TEXT, TITLE,
SUBTITLE, HEADING_1 through HEADING_6.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 20:34:36 +01:00
Taylor Wilsdon
a5a896977f refac 2026-03-03 17:36:21 -05:00
Vishal Verma
10cdcdd7e5 Add support for GDoc Tabs 2026-03-03 09:12:31 -08:00
Taylor Wilsdon
40e827810a refac 2026-02-17 14:49:49 -05:00
Rob Sherman
d02d147252 feat(docs): add update_paragraph_style to batch_update_doc operations
Enable paragraph-level styling (headings, alignment, spacing, indentation)
within atomic batch operations, complementing the existing format_text support.
2026-02-13 15:11:18 -08:00
Taylor Wilsdon
be6a42e6e5 refac 2026-02-08 18:15:36 -05:00
Taylor Wilsdon
4112e67df2 nesting for paragraph styling 2026-02-08 17:38:20 -05:00
Taylor Wilsdon
b6ead2e23c pr feedback 2026-02-08 16:09:37 -05:00
Taylor Wilsdon
464bd8090f Add paragraph-level list formatting support to Google Docs
Enhanced the update_paragraph_style tool to support creating bulleted and
numbered lists with nested indentation levels (0-8). This enables agents to
create well-structured documents that match professional document styles.

Changes:
- Enhanced update_paragraph_style tool with:
  - create_list parameter: Create bulleted (UNORDERED) or numbered (ORDERED) lists
  - list_nesting_level parameter: Support nested list items (0-8 levels)
- Updated create_bullet_list_request helper to accept nesting_level parameter
- Updated documentation in README.md, docs/README.md, and docs/README_NEW.md
- Tool remains in Extended tier as defined in tool_tiers.yaml

This addresses the feature request to expose paragraph-level formatting
operations (named styles, bullets, indentation) that were previously missing
from the character-level modify_doc_text tool.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 15:42:58 -05:00
Gigi Sayfan
34957de2e4 Add hyperlink support to modify_doc_text 2026-02-07 13:44:09 -08:00
Olivier Schiavo
72999a1531 fix: simplify color in modify_color 2025-12-22 09:37:25 +01:00
Olivier Schiavo
c63021c530 fix: color typing 2025-12-16 10:26:20 +01:00
Taylor Wilsdon
6b8352a354 apply ruff formatting 2025-12-13 13:49:28 -08:00
Taylor Wilsdon
115bead29a refac 2025-12-13 12:57:00 -08:00
Olivier Schiavo
7e2f9cdd96 feat: use colors in gdocs 2025-11-27 17:26:35 +01:00
Rob Sherman
203005b76d feat: enhance Google Docs and Drive functionality
- Add insert_doc_image_from_drive() with permission checking
- Add insert_doc_image_url() for URL-based image insertion
- Add gdrive/drive_file_permissions.py with permission utilities
- Add gdrive/drive_helpers.py with Drive utility functions
- Add create_insert_text_segment_request() helper for headers/footers
- Improve error handling to distinguish auth vs validation errors
- Maintain backward compatibility with existing functionality
- Include comprehensive error messages and user guidance

Tested successfully with real Google Workspace integration.
2025-08-14 18:38:37 -07:00
Taylor Wilsdon
0c1edf996e fixes 2025-08-10 16:10:47 -04:00
Taylor Wilsdon
5bcd149f40 lots of fixes 2025-08-10 15:56:18 -04:00
Taylor Wilsdon
543f85ac1c helpers for formatting 2025-08-10 15:33:11 -04:00
Taylor Wilsdon
d67e1fcf0f clean up docstrings 2025-08-10 14:35:56 -04:00
Taylor Wilsdon
6fe2fcdfa2 creating tables actually working reliably 2025-08-10 14:21:01 -04:00
Rob Sherman
f369ca1635 feat(docs): add comprehensive Google Docs editing capabilities
Add full document editing and manipulation support to Google Docs tools,
expanding beyond read-only operations to match Google Docs API capabilities.

Features added:
- Text operations: update_doc_text, find_and_replace_doc, format_doc_text
- Structural elements: insert_doc_elements, insert_doc_image
- Document management: update_doc_headers_footers, batch_update_doc
- Helper functions module for common document operations

Changes:
- gdocs/docs_tools.py: Add 7 new editing functions with comprehensive error handling
- gdocs/docs_helpers.py: New helper module with utility functions for document operations
- README.md: Update Google Docs description to include full editing capabilities
- CLAUDE.md: Add comprehensive documentation for new editing features
- .mcp.json: Add MCP server configuration file
- .gitignore: Resolve merge conflicts from upstream sync
- uv.lock: Update dependencies from upstream merge

The implementation uses Google Docs API batchUpdate operations for atomic
document modifications and maintains compatibility with existing authentication
and error handling patterns.

All new tools follow the established @require_google_service decorator pattern
and include proper scope management for write operations.
2025-08-09 17:57:34 -07:00