← Back to Skills Marketplace
josearroyave

Gemini Tavily Search

by Jose Arroyave · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
191
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install gemini-tavily-search
Description
Use this skill when the user asks about current events, real-time information, recent news, live scores, financial data, price updates, recent changes, or an...
README (SKILL.md)

gemini-tavily-search

Purpose

Provide reliable, up-to-date web information using a resilient multi-provider strategy:

Gemini (primary, optional google_search grounding)
→ automatic fallback → Tavily

The agent always receives normalized JSON output and never raw provider errors.

Activation Criteria

Use this skill ONLY when:

  • The question involves current or recent information
  • News, events, live scores, financial updates
  • Time-sensitive data
  • Facts that may have changed recently
  • Verification against authoritative sources is required
  • The model may not have the latest information in its training data

Do NOT Activate When

Do NOT use this skill when:

  • The question is stable general knowledge
  • Historical facts that do not change
  • Conceptual explanations
  • Code-related tasks
  • Local file operations
  • Documentation already available in context
  • Another more specific skill is better suited

Internal Logic

  1. Perform a lightweight Gemini classification call to determine if web search is required.
  2. If web search is NOT required → answer directly via Gemini without tools.
  3. If web search IS required → call Gemini with google_search tool enabled.
  4. If Gemini fails for ANY reason (timeout, quota error, HTTP error, invalid JSON, API error object, malformed response):
    • Automatically execute Tavily fallback.
  5. Normalize provider output into unified JSON schema.
  6. Always return valid structured JSON.

The agent must not describe fallback logic to the user.

Input

Call the script with a single JSON argument.

Required

  • query (string)

Optional (forwarded to Tavily if fallback occurs)

  • search_depth
  • topic
  • max_results
  • time_range
  • start_date
  • end_date
  • include_domains
  • exclude_domains
  • country
  • additional Tavily-compatible parameters

Environment Requirements

Required:

  • TAVILY_API_KEY
  • GEMINI_API_KEY

Optional:

  • GEMINI_MODEL (default: gemini-2.5-flash-lite)
{
  "env": {
    "GEMINI_MODEL": "gemini-2.5-flash-lite",
    "GEMINI_API_KEY": "your-gemini-key",
    "TAVILY_API_KEY": "your-tavily-key"
  }
}

Output Schema (Unified)

The tool always returns JSON in this format:

{
  "provider": "gemini | tavily",
  "answer": "text or null",
  "results": [
    {
      "title": "Source title",
      "url": "https://example.com",
      "snippet": "Relevant excerpt"
    }
  ],
  "fallback": true | false
}

If both providers fail:

{
  "provider": "tavily",
  "answer": null,
  "results": [],
  "fallback": true,
  "error": "tavily_failed"
}

Post-Processing Requirement

After generating the final answer for the user, append:

Searched with: \x3Cprovider>

Where \x3Cprovider> matches the returned JSON:

  • "gemini"
  • "tavily"

If no web search was used:

Searched with: none

Usage Guidance
This skill appears to be what it says: a Gemini-first web search with automatic Tavily fallback. Before installing: 1) Confirm you are willing to provide GEMINI_API_KEY and TAVILY_API_KEY (these are required for full functionality) and understand that the scripts will call generativelanguage.googleapis.com and api.tavily.com. 2) Ensure curl and jq are present on the host (README and scripts require them); the registry metadata incorrectly omits these requirements. 3) Note one of the included scripts (gemini_tavily_search.sh) was truncated in the provided bundle—inspect the full script locally to ensure there is no additional unexpected behavior. 4) The scripts redact obvious secrets in queries, but that is not a guarantee against exfiltration; if you are concerned about secret leakage, run the skill in an isolated environment or remove/replace provider keys with limited-scope credentials. 5) If you need transparency about fallback behavior, be aware SKILL.md instructs the agent not to describe fallback logic to users; consider modifying that requirement if you prefer full disclosure. If you want, I can: (a) re-check the full (untruncated) scripts, or (b) produce a checklist of the exact commands the scripts will run for a given sample query.
Capability Analysis
Type: OpenClaw Skill Name: gemini-tavily-search Version: 0.1.0 The skill implements a robust search orchestration pattern using Gemini with Google Search grounding and a fallback to Tavily. It includes proactive security measures such as a 'redact_text' function in 'gemini_tavily_search.sh' and 'tavily_search.sh' to strip emails, phone numbers, and API keys from queries before sending them to external providers. The scripts use 'jq' for safe JSON parsing and 'curl' with secure protocols, showing no signs of malicious intent, data exfiltration, or command injection.
Capability Assessment
Purpose & Capability
The skill implements web search orchestration (Gemini primary, Tavily fallback) and the scripts call the expected endpoints (generativelanguage.googleapis.com and api.tavily.com). However the registry metadata claims no required env vars or binaries while README/SKILL.md and the scripts require GEMINI_API_KEY, TAVILY_API_KEY and the CLI tools curl and jq. That mismatch is an incoherence to resolve.
Instruction Scope
SKILL.md and the scripts limit actions to: classify whether web is needed, call Gemini (optionally with google_search grounding), and fall back to Tavily. The scripts only perform network calls to the stated providers, sanitize/redact sensitive patterns from queries, and normalize output to JSON. I saw no instructions to read unrelated local files or to send data to unknown endpoints.
Install Mechanism
This is an instruction-only skill with shell scripts (no installer). No downloads or archive extraction are used. The only risk is runtime network I/O to provider APIs, which is expected for this skill type.
Credentials
Requesting GEMINI_API_KEY and TAVILY_API_KEY is appropriate for a Gemini+Tavily search orchestrator. The scripts also require curl and jq. The problem is that the registry/metadata at the top incorrectly lists 'none' for required env vars and binaries — that inconsistency should be fixed before trusting automated installation.
Persistence & Privilege
The skill does not request always:true or modify system or other skills' configs. It runs as on-demand scripts and does network calls; autonomous invocation is allowed by default but not an additional privilege in this package.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gemini-tavily-search
  3. After installation, invoke the skill by name or use /gemini-tavily-search
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
- Initial release of gemini-tavily-search skill. - Provides up-to-date web information by combining Gemini (with Google Search) and automatic fallback to Tavily in case of errors. - Only activates for questions requiring current, real-time, or recently updated data. - Always returns results in a consistent JSON format, hiding any fallback details from the user. - Requires TAVILY_API_KEY and GEMINI_API_KEY for setup.
Metadata
Slug gemini-tavily-search
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Gemini Tavily Search?

Use this skill when the user asks about current events, real-time information, recent news, live scores, financial data, price updates, recent changes, or an... It is an AI Agent Skill for Claude Code / OpenClaw, with 191 downloads so far.

How do I install Gemini Tavily Search?

Run "/install gemini-tavily-search" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Gemini Tavily Search free?

Yes, Gemini Tavily Search is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Gemini Tavily Search support?

Gemini Tavily Search is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Gemini Tavily Search?

It is built and maintained by Jose Arroyave (@josearroyave); the current version is v0.1.0.

💬 Comments