Control Gemini with Just a URL. The Chrome Extension 'Send to Gemini' Is Incredibly Useful
Source: Dev.to
Send to Gemini – Chrome Extension
If you use Google Gemini daily, you’ve probably run into one (or more) of these pain points:
- Manually copy‑pasting the same prompts over and over.
- Wanting to send data from your web app to Gemini, but the API is costly.
- Finding it tedious to share “try asking with this prompt” with teammates.
Send to Gemini solves all of these with a single Chrome extension.
👉 Send to Gemini – Chrome Web Store
What Can It Do?
In a nutshell, it’s a Chrome extension that lets you programmatically control Gemini prompts through URL parameters and a JavaScript API.
- Transforms Gemini prompt input from “something you type by hand” to “something you can automate.”
- Operates Gemini Chat directly in the browser without using the Gemini API, so there are zero API usage fees. Whether you’re on a free Gemini account or Gemini Advanced, your everyday Gemini Chat becomes the target of automation.
The Best Feature: Pass Prompts via URL Parameters
The usage couldn’t be simpler—just add ?prompt= to the Gemini URL.
https://gemini.google.com/app?prompt=Tell me about today's weather
Open that URL in your browser and the prompt is auto‑filled and auto‑submitted. That’s all there is to it.
What This Makes Possible
1. Bookmarks Become Prompts
Save frequently used questions or prompts as bookmarks and ask Gemini with a single click.
📌 Daily News Summary
https://gemini.google.com/app?prompt=Summarize today's top news in 3 bullet points
📌 English Email Proofreading
https://gemini.google.com/app?prompt=Please proofread the following English email:&autosubmit=false
Adding autosubmit=false fills the prompt without submitting, letting you add more text before sending.
2. Share Prompts with Your Team
Paste a URL in Slack, Notion, or any chat tool and everyone can ask Gemini using the same prompt.
“Try asking about the root cause of this outage with this prompt:”
https://gemini.google.com/app?prompt=Analyze the following error logs and provide the root cause and recommended actions:
No more “What prompt should I use?” questions.
3. Embed in Links from External Tools
Add an “Analyze with Gemini” button to dashboards or internal tools. Dynamically generate the URL and any tool can integrate with Gemini.
Another Powerful Feature: JavaScript API for External Integration
URL parameters are great, but the JavaScript API lets you send prompts to Gemini directly from your own web pages and web apps.
const extensionId = "your-extension-id";
chrome.runtime.sendMessage(
extensionId,
{
type: "autofill",
prompt: "Please analyze this data:\n" + yourData,
autoSubmit: true
},
(response) => {
if (response?.success) {
console.log("Successfully sent to Gemini!");
}
}
);
URL Parameters vs. JavaScript API
| Feature | URL Parameters | JavaScript API |
|---|---|---|
| Ease of Use | ◎ Just paste a URL | ○ Requires code |
| Text Volume | △ URL length limits | ◎ Thousands of lines OK |
| Dynamic Data | △ Encoding required | ◎ Pass variables directly |
| Typical Use Cases | Bookmarks, link sharing | Web‑app integration, data analysis |
With the JavaScript API you can send thousands of lines of logs or code to Gemini without worrying about URL length limits.
All of this is completely free. Normally, calling Gemini from an application requires a pay‑per‑token API contract. Send to Gemini is just a browser extension that operates Gemini Chat—no API key, no charges.
async/await Support
For modern JavaScript you can wrap the message in a Promise:
function sendToGemini({ prompt, autoSubmit = true }) {
return new Promise((resolve, reject) => {
chrome.runtime.sendMessage(
extensionId,
{ type: "autofill", prompt, autoSubmit },
(response) => {
if (chrome.runtime.lastError) {
reject(new Error(chrome.runtime.lastError.message));
} else if (response?.success) {
resolve(response);
} else {
reject(new Error("Failed to send"));
}
}
);
});
}
// Usage
await sendToGemini({
prompt: "Please review the following code:\n" + codeBlock,
autoSubmit: true
});
Even More Handy Features
Instant Send via Right‑Click Menu
- Select text on any web page.
- Right‑click → Send to Gemini.
A new Gemini tab opens with the selected text filled in as the prompt—no copy‑and‑paste needed.
Custom Prompts
Register frequently used prompt templates (e.g., “Translate to English,” “Summarize,” “Explain this code”) in the right‑click menu.
Selected text + custom prompt are automatically combined, so a single right‑click can translate or summarize the selection.
You can also toggle auto‑submit for each custom prompt individually.
8 Languages Supported
Japanese, English, German, Spanish, French, Korean, Portuguese, and Chinese. The UI automatically switches based on your browser’s language settings.
Usage Ideas
| Scenario | Method |
|---|---|
| Daily news summary | Bookmark a URL |
| Code‑review requests | Auto‑send via JavaScript API |
| Article translation | Select text → Right‑click → Send |
| Log analysis | Generate URL programmatically or use API |
| Team knowledge base | Share prompt URLs in Slack/Notion |
Send to Gemini turns Gemini Chat into an automatable tool—no API keys, no costs, just a Chrome extension. Give it a try and let your prompts work for you!
🛠️ Quick Features
- Custom Prompt – Create and reuse your own prompts.
- Error‑log Analysis – Send large text snippets via the JavaScript API for instant debugging.
- Team Collaboration – Share prompts with teammates, paste URLs directly into Slack or Notion.
- Internal‑Tool Integration – Add an “Analyze with Gemini” button to any web app through a simple API call.
📌 Conclusion
The essence of Send to Gemini is making Gemini programmable.
- URL parameters enable easy automation via bookmarks and link sharing.
- JavaScript API provides full‑fledged external integration from web apps.
There’s no Gemini API contract, no API keys, and no server‑side implementation required. All of this runs entirely in the browser at zero cost, which is truly groundbreaking.
If you want to weave Gemini more deeply into your daily workflow, give it a try.