본문으로 건너뛰기
cccskills
무료GitHub에 공개

tinyfish-integration

Integrate TinyFish web toolkit (search, fetch, browser automation) into Hermes Agent

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Cloudflare
설치 방법 보기

포함된 파일(4)

  • SKILL.md5.6 KB
  • references/cloudflare-bypass-pattern.md4.7 KB
  • references/fetch-api-405-issue.md3.0 KB
  • scripts/tinyfish_search.py5.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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 string
  • location (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_HERE

3. Enable Toolset

Add to ~/.hermes/config.yaml:

toolsets:
  - tinyfish

4. 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.ai with JSON body

Both tools:

  • Use X-API-Key header for authentication
  • Return JSON responses
  • Handle errors gracefully
  • Support 60-second timeout for fetch (30s for search)

When to Use Each Tool

ToolUse When
tinyfish_searchYou need to find URLs or get current information
tinyfish_fetchYou already know the URL and need the content
Agent APITinyFish should perform multi-step workflows
Browser APIYou 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/.env has the key
  • Restart Hermes after adding the key

"HTTP 401: Unauthorized"

"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:

  1. Create browser session → wait for Cloudflare bypass (30 retries, 5s interval)
  2. Connect to CDP websocket → inject auth tokens
  3. Execute API calls via Runtime.evaluate with fetch()
  4. Always cleanup session when done

References

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Drives development with tests. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

kevinnft/ai-agent-skills142026년 8월 1일 업데이트

airtable

무료

Airtable REST API via curl. Records CRUD, filters, upserts.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

kevinnft/ai-agent-skills142026년 8월 1일 업데이트

Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

kevinnft/ai-agent-skills142026년 8월 1일 업데이트

Build monitoring bots that poll APIs and send notifications on state changes (new listings, price alerts, status updates)

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

kevinnft/ai-agent-skills142026년 8월 1일 업데이트

REST/GraphQL API testing with automated validation — test endpoints, validate responses, check status codes, and ensure API contracts

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

kevinnft/ai-agent-skills142026년 8월 1일 업데이트

Manage Apple Notes via memo CLI: create, search, edit.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

kevinnft/ai-agent-skills142026년 8월 1일 업데이트

kevinnft의 스킬 모두 보기

이 스킬의 문제 신고