This commit is contained in:
Taylor Wilsdon
2026-02-01 12:07:00 -05:00
parent cfab4a59f7
commit 1197518473
2 changed files with 22 additions and 10 deletions

View File

@@ -1333,7 +1333,6 @@ async def export_doc_to_pdf(
# ==============================================================================
@server.tool()
@handle_http_errors("format_paragraph_style", service_type="docs")
@require_google_service("docs", "docs_write")
@@ -1402,7 +1401,10 @@ async def format_paragraph_style(
fields.append("lineSpacing")
if indent_first_line is not None:
paragraph_style["indentFirstLine"] = {"magnitude": indent_first_line, "unit": "PT"}
paragraph_style["indentFirstLine"] = {
"magnitude": indent_first_line,
"unit": "PT",
}
fields.append("indentFirstLine")
if indent_start is not None:
@@ -1516,8 +1518,6 @@ async def apply_heading_style(
return f"Applied {heading_style} style to range {start_index}-{end_index} in document {document_id}. Link: {link}"
# Create comment management tools for documents
_comment_tools = create_comment_tools("document", "document_id")