If you use Google Gemini on a daily basis, have you ever experienced any of these?
- Manually copy-pasting the same prompts over and over
- Wanting to send data from your web app to Gemini, but API usage is costly
- Finding it tedious to share "try asking with this prompt" with team members
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.
What does this mean? It transforms Gemini prompt input from "something you type by hand" to "something you can automate".
And because it operates Gemini Chat directly in the browser without using the Gemini API, 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
Simply open this 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 your frequently used questions or prompts as bookmarks, and you can 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 will only fill in the prompt without submitting, so you can add more text before sending.
2. Share Prompts with Your Team
Just paste a URL in Slack or Notion, and everyone on the team 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 being asked "What prompt should I use?"
3. Embed in Links from External Tools
You can add an "Analyze with Gemini" button to dashboards and internal tools. Just dynamically generate URLs, and any tool can integrate with Gemini.
Another Powerful Feature: JavaScript API for External Integration
URL parameters alone are powerful enough, but Send to Gemini goes further by providing a JavaScript API.
This 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!");
}
}
);
Differences from URL Parameters
| 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 |
| Use Cases | Bookmarks, link sharing | Web app integration, data analysis |
With the JavaScript API, you can send thousands of lines of logs or code directly to Gemini without worrying about URL length limits.
And let me emphasize again: all of this is available completely free of charge. Normally, calling Gemini from an application requires a Gemini API contract with pay-per-token billing. But Send to Gemini is simply a browser extension that operates Gemini Chat. No API key needed, no charges at all. Whether for personal projects or team experimentation, you can try Gemini integration without worrying about costs.
async/await Support
For modern JavaScript, you can easily write a Promise-based version.
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 a web page, right-click β "Send to Gemini." That's it β a new Gemini tab opens with the selected text filled in as the prompt.
Send interesting articles or error messages to Gemini without any copy-and-paste.
Custom Prompts
Register frequently used prompt templates like "Translate to English," "Summarize," or "Explain this code" in the right-click menu.
Selected text + custom prompt are automatically combined, so just select text and right-click to complete translation or summarization in a single action.
You can also configure auto-submit on/off for each custom prompt individually β a nice touch.
8 Languages Supported
Supports 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 β Custom prompt |
| Error log analysis | Send large text via JavaScript API |
| Sharing prompts with team | Paste URL in Slack/Notion |
| Internal tool integration | Add "Analyze with Gemini" button via API |
Conclusion
The essence of Send to Gemini is making Gemini programmable.
- URL parameters for easy automation through bookmarks and link sharing
- JavaScript API for full-fledged external integration from web apps
No Gemini API contract, no API keys, no server-side implementation needed. Achieving all of this in the browser alone at zero cost is groundbreaking.
If you want to weave Gemini more deeply into your daily workflow, give it a try.
Top comments (0)