tinyfish-integration
Skill15 starsChanged 7 months agoMITView on GitHub
Integrate TinyFish web toolkit (search, fetch, browser automation) into Hermes Agent
- Reads credentials
In this repository143 other files it gives its agents.
- api-and-interface-designSkill
- browser-testing-with-devtoolsSkill
- ci-cd-and-automationSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- context-engineeringSkill
- debugging-and-error-recoverySkill
- deprecation-and-migrationSkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- frontend-ui-engineeringSkill
- git-workflow-and-versioningSkill
- idea-refineSkill
- incremental-implementationSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- security-and-hardeningSkill
- shipping-and-launchSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- addyosmani-tddSkill
- using-agent-skillsSkill
- apple-notesSkill
- apple-remindersSkill
- findmySkill
- imessageSkill
- claude-codeSkill
- codexSkill
- hermes-agentSkill
- opencodeSkill
- architecture-diagramSkill
- ascii-artSkill
- ascii-videoSkill
- baoyu-comicSkill
- baoyu-infographicSkill
- claude-designSkill
- comfyuiSkill
- creative-ideationSkill
- design-mdSkill
- drawio-headlessSkill
- excalidrawSkill
- humanizerSkill
- manim-videoSkill
- p5jsSkill
- pixel-artSkill
- popular-web-designsSkill
- pretextSkill
- sketchSkill
- social-media-slideshow-videoSkill
- songwriting-and-ai-musicSkill
- touchdesigner-mcpSkill
- visual-assets-generationSkill
- jupyter-live-kernelSkill
- api-monitoring-botsSkill
- cloud-browser-automationSkill
- docker-composeSkill
- kanban-orchestratorSkill
- kanban-workerSkill
- vps-cleanupSkill
- vps-security-hardeningSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Search the live web and get structured, agent-ready results.
- Very specific: line 118
Use X-API-Key header for authentication
- Distinctive: line 141
Search: No explicit rate limit documented
- Distinctive: line 144
Free tier: Search and fetch are free with no credit cost
- Very specific: line 149
Check ~/.hermes/.env has the key
- Distinctive: line 153
Verify API key is correct
- Distinctive: line 154
Check key hasn't expired at https://agent.tinyfish.ai/api-keys
- Distinctive: line 158
Update to latest tool version if you see this
- Distinctive: line 163
Check if the target site is accessible
- Distinctive: line 202
Create browser session → wait for Cloudflare bypass (30 retries, 5s interval)
- Distinctive: line 205
Always cleanup session when done
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
TinyFish Integration
TinyFish is a web toolkit for AI agents that provides search, fetch, and browser automation capabilities. Search and fetch are free for every account — no credits, no cost.
Available Tools
tinyfish_search
Search the live web and get structured, agent-ready results.
Use cases:
- Current information, news, prices
- Finding URLs before fetching content
- Anything that changes over time
Parameters:
query(required): Search query stringlocation(optional): 2-letter country code (e.g., "US", "FR", "ID")language(optional): 2-letter language code (e.g., "en", "fr", "id")page(optional): Page number for pagination (default: 0)
Example:
tinyfish_search(query="Hermes Agent AI", location="US", language="en")Response format:
{
"results": [
{
"title": "Page Title",
"url": "https://example.com",
"snippet": "Description text...",
"site_name": "Example Site"
}
]
}tinyfish_fetch
Pull the full content of any web page as clean extracted text.
Use cases:
- Reading articles, docs, product pages
- Extracting content without ads/navigation
- Batch processing multiple URLs (max 10)
Parameters:
urls(required): Single URL or comma-separated list (max 10)
Examples:
# Single URL
tinyfish_fetch(urls="https://example.com")
# Multiple URLs
tinyfish_fetch(urls="https://site1.com, https://site2.com, https://site3.com")Response format:
{
"results": [
{
"url": "https://example.com",
"final_url": "https://example.com",
"title": "Page Title",
"description": "Meta description",
"language": "en",
"text": "# Heading\n\nClean extracted content..."
}
],
"errors": []
}Setup
1. Get API Key
Visit https://agent.tinyfish.ai/api-keys to get your API key.
2. Configure Hermes
Add to ~/.hermes/.env:
TINYFISH_API_KEY=sk-tinyfish-YOUR_KEY_HERE3. Enable Toolset
Add to ~/.hermes/config.yaml:
toolsets:
- tinyfish4. Verify Installation
hermes chat -q "Search for 'Hermes Agent' using tinyfish_search"Tool Implementation
The TinyFish tools are implemented in ~/.hermes/hermes-agent/tools/tinyfish_search.py:
- tinyfish_search: GET request to
https://api.search.tinyfish.ai - tinyfish_fetch: POST request to
https://api.fetch.tinyfish.aiwith JSON body
Both tools:
- Use
X-API-Keyheader for authentication - Return JSON responses
- Handle errors gracefully
- Support 60-second timeout for fetch (30s for search)
When to Use Each Tool
| Tool | Use When |
| tinyfish_search | You need to find URLs or get current information |
| tinyfish_fetch | You already know the URL and need the content |
| Agent API | TinyFish should perform multi-step workflows |
| Browser API | You need direct browser control from your code |
Supported Content Types (Fetch)
- ✅ HTML pages (clean text extraction)
- ✅ PDF files (text extraction)
- ✅ JSON endpoints (raw JSON)
- ❌ Binary files (images, video) — returns error
Limitations
- Search: No explicit rate limit documented
- Fetch: Max 10 URLs per request
- Timeout: 60 seconds for fetch, 30 seconds for search
- Free tier: Search and fetch are free with no credit cost
Troubleshooting
"TINYFISH_API_KEY environment variable not set"
- Check
~/.hermes/.envhas the key - Restart Hermes after adding the key
"HTTP 401: Unauthorized"
- Verify API key is correct
- Check key hasn't expired at https://agent.tinyfish.ai/api-keys
"HTTP 405: Method Not Allowed"
- This was the old bug — fetch now uses POST correctly
- Update to latest tool version if you see this
Timeout errors
- Fetch has 60s timeout — some pages may be slow
- Try fetching fewer URLs at once
- Check if the target site is accessible
Advanced Usage
Batch Fetch with Error Handling
# Fetch multiple URLs — errors don't affect other URLs
result = tinyfish_fetch(urls="https://site1.com, https://site2.com, https://invalid-url.com")
# Response includes both results and errors
{
"results": [...], # Successful fetches
"errors": [...] # Failed URLs with error messages
}Geo-Targeted Search
# Search from specific country
tinyfish_search(query="best pizza", location="IT", language="it")Pagination
# Get page 2 of results
tinyfish_search(query="AI agents", page=1)Browser Automation (Advanced)
For sites protected by Cloudflare or requiring JavaScript execution, use the Browser API with CDP websocket automation.
See: references/cloudflare-bypass-pattern.md for complete workflow including:
- Cloudflare Turnstile bypass with retry loop
- CDP websocket automation via Runtime.evaluate
- Token injection via localStorage
- Transactional operation patterns (check → act → verify)
Key pattern:
- Create browser session → wait for Cloudflare bypass (30 retries, 5s interval)
- Connect to CDP websocket → inject auth tokens
- Execute API calls via
Runtime.evaluatewithfetch() - Always cleanup session when done
References
- TinyFish Docs: https://docs.tinyfish.ai/
- API Keys: https://agent.tinyfish.ai/api-keys
- Cookbook: https://github.com/tinyfish-io/tinyfish-cookbook
- Cloudflare Bypass Pattern:
references/cloudflare-bypass-pattern.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

