anthropics / anthropics/claude-code
Google Drive connector `create_file` always produces Letter-sized Google Docs, ignoring account default and content-level page-size hints
- Ngôn ngữ chính
- Python
- Star
- 145k
- Fork
- 23.1k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
**Bug description**
Google Docs created via the Google Drive MCP connector's `create_file` tool are always Letter-sized (8.5"×11"), regardless of the user's own Google Docs account default or any page-size hint in the uploaded content.
**Steps to reproduce**
1. Confirm the target Google account's own Docs default is A4 (verified by creating a Doc manually in the Docs UI — it comes out A4).
2. Call `create_file` with `contentMimeType: "text/markdown"` and markdown `textContent`, letting it auto-convert to a Google Doc. Result: Letter.
3. As a workaround attempt, call `create_file` with `contentMimeType: "text/html"` and an explicit page-size hint in the content:
```html
@page { size: 210mm 297mm; margin: 20mm; }
```
Result: still Letter. The content-level hint is ignored.
**Expected behavior**
Either respect the account's own Google Docs default page size, or respect an explicit page-size hint in the uploaded content (HTML `@page` rule or similar), rather than silently forcing Letter regardless of both.
**Context**
This affects any non-US/Canada user of the connector — A4 is the standard page size across most of the world. Notably, Anthropic's own `docx` skill (a different tool, for generating Word files) defaults to A4 with Letter as the explicit opt-in — the opposite default from what this connector does, which suggests this is an oversight rather than an intentional choice.
**Environment:** Google Drive MCP connector (`mcp__Google_Drive__create_file`), via Claude Code.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Start by reproducing through the Google Drive MCP connector's create_file tool, especially mcp__Google_Drive__create_file with text/markdown and text/html plus the @page size rule shown in the issue. Then trace the connector path that converts uploaded content into a Google Doc. Done means created Google Docs no longer silently force Letter when the account default or explicit content hint indicates A4.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- html, markdown, python
- Lĩnh vực
- api, backend
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100