use-tinyfish — Claude Code skill: what it does, how to install
Integrates the TinyFish CLI to search the web, fetch clean Markdown from URLs, and automate browsers.
npx skills add tinyfish-io/tinyfish-cookbook --skill use-tinyfish -a claude-codeWhat use-tinyfish does
This skill equips the agent with rules for the tinyfish terminal tool. Operations follow an escalation path: fast web searches with tinyfish search query, clean article reading via tinyfish fetch content get, and dynamic page interaction with tinyfish agent run. If standard automation falls short, raw CDP control is available through the browser tool.
To run these commands, install @tiny-fish/cli via npm and authenticate using tinyfish auth login --source openclaw or the TINYFISH_API_KEY environment variable. When scraping multiple sites, avoid combining them into a single agent prompt; parallel single-site calls are required to keep extraction reliable.
What it helps with
- run web searches with location and language filters for live data
- extract article content into clean Markdown without navigation clutter
- automate form submissions and clicks on dynamic sites to pull structured JSON
- fetch multiple URLs simultaneously with extracted links and metadata
Example prompts for the agent
- Search for React state management libraries in 2026 and fetch the markdown content of the top result
- Extract product names and prices as JSON from this store URL using tinyfish agent run
- Fetch the content and links from these two documentation pages in parallel
How to install use-tinyfish
1Skills CLI (Vercel)
npx skills add tinyfish-io/tinyfish-cookbook --skill use-tinyfish -a claude-code2Manually: put the files in place
~/.claude/skills/use-tinyfish/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/use-tinyfish/
1Skills CLI (Vercel)
npx skills add tinyfish-io/tinyfish-cookbook --skill use-tinyfish -a codex2Manually: put the files in place
.agents/skills/use-tinyfish/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add tinyfish-io/tinyfish-cookbook --skill use-tinyfish -a cursor2Manually: put the files in place
.cursor/skills/use-tinyfish/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install tinyfish-io/tinyfish-cookbook use-tinyfish2Manually: put the files in place
.github/skills/use-tinyfish/SKILL.md1Skills CLI (Vercel)
npx skills add tinyfish-io/tinyfish-cookbook --skill use-tinyfish -a gemini-cli2Platform CLI
gemini skills install https://github.com/tinyfish-io/tinyfish-cookbook --path skills/use-tinyfishManually: put the files in place
.devin/skills/use-tinyfish/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add tinyfish-io/tinyfish-cookbook --skill use-tinyfish -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Similar
Questions about use-tinyfish
How to install use-tinyfish in Claude Code?
Run npx skills add tinyfish-io/tinyfish-cookbook --skill use-tinyfish -a claude-code in your terminal. You must also install the CLI globally via npm install -g @tiny-fish/cli.
What does use-tinyfish do?
It guides the assistant to pick the right web tool based on task complexity, moving from search queries and Markdown extraction to full browser automation.
What credentials does TinyFish require?
You need an active session configured via tinyfish auth login --source openclaw or by setting the TINYFISH_API_KEY environment variable.
Source text
SKILL.md · MIT
---
name: use-tinyfish
description: Use TinyFish for web search, fetching URLs, reading pages, current information, source-backed answers, research, docs, pricing/product pages, extraction, scraping, and browser automation. Use whenever the user asks to search, find, look up, research, compare, get information from the web, summarize a URL, fetch page content, or automate a website.
---
# TinyFish CLI
You have access to the TinyFish CLI (`tinyfish`) — a suite of web tools you can call from the terminal.
If not installed: `npm install -g @tiny-fish/cli`
If not authenticated: `tinyfish auth login --source openclaw` or set `TINYFISH_API_KEY` env var.
---
## When This Skill Should Trigger
Use TinyFish whenever a request depends on live web information or page content. Do not wait for the user to say "TinyFish" or "scrape".
Strong triggers include:
- Search or discovery: search, find, look up, research, compare, latest, current, news, docs, pricing, product details, best options.
- URL/page reading: fetch, read, summarize, extract from this page, inspect this URL, get the content, pull links or metadata.
- Source-backed answers: answer using web sources, verify a fact, check whether something changed, gather information from the web.
- Website work: interact with a site, click through pages, fill forms, log in, collect structured data, handle bot-protected pages.
Default to the lightest tool that can answer:
- No URL and the user needs web information: `search`, then `fetch` the best result(s) if more detail is needed.
- URL provided and only content is needed: `fetch`.
- Page interaction or dynamic extraction is needed: `agent`.
- Raw CDP/Playwright-style control is needed: `browser`.
---
## Picking the Right Tool
TinyFish has four tools. Start with the lightest one that can do the job and escalate only when needed.
```
search → fetch → agent → browser
lightest heaviest
```
| Tool | When to use | Speed | Cost |
|------|-------------|-------|------|
| **search** | You need to find URLs, current facts, docs, pricing, product details, or a quick source-backed answer | Fastest | Lowest |
| **fetch** | You have URLs and need clean page content, summaries, article text, docs, product pages, links, or metadata | Fast | Low |
| **agent** | You need to interact with a page — click, fill forms, navigate, extract structured data from dynamic sites | Slower | Higher |
| **browser** | Agent isn't enough — you need raw programmatic browser control via CDP | Slowest | Highest |
### Common Patterns
**Research: search → fetch**
Search for a topic, then fetch the best results to read their full content.
```bash
# 1. Find URLs
tinyfish search query "best React state management libraries 2026"
# 2. Read the top results
tinyfish fetch content get --format markdown "https://result1.com" "https://result2.com"
```
**Deep extraction: search → agent**
Search to find the right site, then use agent to interact with it and extract structured data.
```bash
# 1. Find the site
tinyfish search query "Nike running shoes official store"
# 2. Automate extraction on it
tinyfish agent run --url "https://nike.com/running" \
"Extract all running shoes as JSON: [{\"name\": str, \"price\": str, \"colors\": [str]}]"
```
**Escalation: fetch → agent**
Try fetch first. If the page is dynamic/JS-heavy and fetch returns empty or incomplete content, escalate to agent.
**Full control: agent → browser**
If agent can't handle a complex multi-step workflow, spin up a raw browser session and automate it yourself via CDP.
---
## Commands
### `tinyfish search query`
Web search. Returns ranked results with titles, URLs, and snippets.
```bash
tinyfish search query "<query>" [--location <hint>] [--language <hint>] [--pretty]
```
- Returns 10 results by default
- Use `--location` and `--language` for geo-targeted results
- Default output is JSON; `--pretty` for human-readable
```bash
tinyfish search query "best pho in Ho Chi Minh City" --location "Vietnam" --language "en"
```
---
### `tinyfish fetch content get`
Fetch clean, extracted content from one or more URLs. Strips ads, nav, boilerplate — returns just the content.
```bash
tinyfish fetch content get <urls...> [--format markdown|html|json] [--links] [--image-links] [--pretty]
```
- Accepts **multiple URLs** in a single call — they are fetched in parallel server-side
- `--format markdown` (default) — clean readable text
- `--format json` — structured document tree
- `--links` — include all extracted links from the page
- `--image-links` — include extracted image URLs
- Response includes: `url`, `final_url`, `title`, `language`, `author`, `published_date`, `text`, `latency_ms`
```bash
# Fetch one page as markdown
tinyfish fetch content get --format markdown "https://example.com/article"
# Fetch multiple pages with links
tinyfish fetch content get --links "https://site-a.com" "https://site-b.com" "https://site-c.com"
```
---
### `tinyfish agent run`
Run a browser automation using a natural language goal. The agent opens a real browser, navigates, clicks, fills forms, and extracts data.
```bash
tinyfish agent run --url <url> "<goal>" [--sync] [--async] [--pretty]
```
| Flag | Purpose |
|------|---------|
| `--url <url>` | Target URL (bare hostnames get `https://` auto-prepended) |
| `--sync` | Wait for full result without streaming steps |
| `--async` | Submit and return immediately |
| `--pretty` | Human-readable output |
**Output:** Default streams `data: {...}` SSE lines. The final result is the event where `type == "COMPLETE"` and `status == "COMPLETED"` — the extracted data is in the `resultJson` field. Read the raw output directly; no script-side parsing is needed.
**Always specify the JSON structure you want in the goal:**
```bash
tinyfish agent run --url "https://example.com/products" \
"Extract all products as JSON array: [{\"name\": str, \"price\": str, \"url\": str}]"
tinyfish agent run --url "https://example.com/search" \
"Search for 'wireless headphones', filter under $50, extract top 5 as JSON: [{\"name\": str, \"price\": str, \"rating\": str}]"
```
**Parallel extraction — when hitting multiple independent sites, make separate calls. Do NOT combine into one goal.**
Good — parallel calls (run simultaneously):
```bash
tinyfish agent run --url "https://pizzahut.com" \
"Extract pizza prices as JSON: [{\"name\": str, \"price\": str}]"
tinyfish agent run --url "https://dominos.com" \
"Extract pizza prices as JSON: [{\"name\": str, \"price\": str}]"
```
Bad — single combined call:
```bash
# Don't do this — less reliable and slower
tinyfish agent run --url "https://pizzahut.com" \
"Extract prices from Pizza Hut and also go to Dominos..."
```
**Managing runs:**
```bash
tinyfish agent run list [--status PENDING|RUNNING|COMPLETED|FAILED|CANCELLED] [--limit N]
tinyfish agent run get <run_id>
tinyfish agent run cancel <run_id>
```
**Batch operations** — submit many runs from a CSV file (`url,goal` columns):
```bash
tinyfish agent batch run --input runs.csv
tinyfish agent batch list
tinyfish agent batch get <batch_id>
tinyfish agent batch cancel <batch_id>
```
---
### `tinyfish browser session create`
Spin up a remote browser instance. Returns a CDP WebSocket URL for programmatic control.
```bash
tinyfish browser session create [--url <url>] [--proxy-country <code> | --proxy-url <url> [--proxy-username <user>] | --no-proxy] [--pretty]
```
- `--url` optionally navigates to a page after creation
- Returns `session_id`, `cdp_url` (WebSocket), and `base_url`
- Use the `cdp_url` with Playwright, Puppeteer, or any CDP client
- By default traffic exits through the TinyFish proxy in the US, with the same IP for the whole session
- `--proxy-country <code>` picks another exit country (ISO 3166-1 alpha-2, e.g. `DE`, `JP`)
- `--proxy-url <url>` routes through the user's own HTTP(S) proxy; `--proxy-username <user>` for auth, password via `TINYFISH_PROXY_PASSWORD` env (never a flag)
- `--no-proxy` connects directly, without a proxy
```bash
tinyfish browser session create --url "https://example.com"
# Returns: { session_id, cdp_url: "wss://...", base_url: "https://..." }
tinyfish browser session create --url "https://example.de" --proxy-country DE
```
---
## General Notes
- **Match the user's language**: Respond in whatever language the user writes in.
- All commands support `--pretty` for human-readable output. Default is JSON.
- Use `--debug` on the root command or set `TINYFISH_DEBUG=1` to log HTTP requests to stderr.
© tinyfish-io · MIT · tinyfish-io/tinyfish-cookbook