feat(docs,drive): add styling tools and import_to_google_doc

Google Docs styling tools:
- format_text_style: Rich text formatting (bold, italic, underline, colors, fonts)
- format_paragraph_style: Paragraph formatting (alignment, spacing, indentation)
- apply_heading_style: Apply H1-H6 heading styles using namedStyleType
- create_list: Convert paragraphs to bullet/numbered lists with visual indentation
- remove_list_formatting: Remove list formatting from paragraphs

Google Drive import tool:
- import_to_google_doc: Import files (MD, DOCX, TXT, HTML, RTF, ODT) as native
  Google Docs with automatic format conversion by Google Drive

Security:
- SSRF protection for file_url parameter (blocks localhost and private IPs)

All tools include input validation, error handling, and comprehensive docstrings.
This commit is contained in:
leolln
2025-12-25 20:11:38 +01:00
parent 014a7d8adf
commit 6678b96d65
3 changed files with 743 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ drive:
- get_drive_file_content
- get_drive_file_download_url
- create_drive_file
- import_to_google_doc
- share_drive_file
- get_drive_shareable_link
extended:
@@ -57,6 +58,11 @@ docs:
- find_and_replace_doc
- list_docs_in_folder
- insert_doc_elements
- format_text_style
- format_paragraph_style
- apply_heading_style
- create_list
- remove_list_formatting
complete:
- insert_doc_image
- update_doc_headers_footers