What problem does it solve? Rewriting text with Google Docs' built-in Gemini tools (formalize, rephrase, shorten) cannot be triggered through the public Docs API, forcing users to manually copy text in and out of the browser. This Skill bridges that gap by staging text into a workbench Google Doc, driving the visible Gemini refine UI, and reading the final text back for the agent. ## Core Features & Use Cases - Connector-assisted staging: Uses a Google Drive/Docs connector when available to create workbench docs, replace document text, and read back final content reliably. - Visible browser automation: A Playwright-based script opens a persistent Chrome profile, stages text, and can automatically run Gemini refine modes such as more-formal, rephrase, shorten, elaborate, bulletize, and summarize. - Human-in-the-loop fallback: When automation cannot complete the rewrite, the script pauses so the user can run the Gemini UI manually, then extracts the result from the clipboard. - Use Case: You have a rough draft paragraph in a local file and need it formalized for an academic paper. The Skill stages it into a disposable Google Doc, runs the "More formal" Gemini action in the visible browser, and writes the refined text to an output file. ## Quick Start Ask the agent to refine the text in draft.txt using the Google Doc at your workbench URL with the instruction to make it more formal, and save the result to refined.txt.