workspace_write
Types text into Google Docs or Slides using real keystroke events, bypassing canvas editor restrictions and dismissing overlays. Supports Docs cursor and Slides placeholder selection.
Instructions
Type text into a Google Workspace editor (Docs or Slides) reliably.
Google Docs/Slides render on , so fill_field/click can't place
text and execCommand is deprecated/flaky. This tool dismisses blocking side
panels, focuses the editor, and types with real keystrokes (the events the
canvas editor actually listens for), then verifies.
Docs: types at the current cursor (auto-removes the Gemini overlay and focuses the hidden input iframe). Slides: pass placeholder=N to pick the text box (0 = first, usually the title). Removes the onboarding modal, double-clicks the placeholder to enter edit mode, then types. Use workspace_new_slide() to add slides.
Newlines in text are sent as real Enter presses.
Args: text: Text to type. target: 'auto' (detect from URL), or force 'docs' / 'slides'. verify: Read the text back to confirm it landed (Docs only, best-effort). placeholder: Slides only — which text placeholder to edit (0-based, in document order; 0 is typically the title).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| target | No | auto | |
| verify | No | ||
| placeholder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |