SuperAPI AI Directory

tinyfish

Agents & models

View repository

Updated 10-15 23:44

About this skill

TinyFish CLI

Invoke TinyFish browser automation capabilities via the command line: search, scrape body text, execute automation tasks, batch operations.

When to Use

  • Need web search and structured results (title, URL, summary)
  • Need to scrape web page body text (removing ads and navigation noise)
  • Need to perform automated operations on web pages (extract data, click, fill forms, etc.)
  • Need to batch process multiple web page tasks
  • Need to create a remote browser session for programmatic control

When Not to Use

  • Pure local file operations or code search
  • When existing MCP tools (Context7, Exa, web-reader) can meet the need, prefer MCP
  • Simple HTTP requests that do not need browser capabilities

Prerequisites

The CLI is installed and configured. Run tinyfish auth status to confirm authentication status. When unauthenticated, the exit code is 1.

Core Workflow

需要搜索信息?──→ tinyfish search query
需要抓取网页正文?──→ tinyfish fetch content get
需要浏览器自动化?──→ tinyfish agent run --sync
需要批量处理?──→ tinyfish agent batch run --input file.csv
需要远程浏览器?──→ tinyfish browser session create

Command Quick Reference

Command Purpose Key flags
tinyfish search query "..." Web search --location、--language
tinyfish fetch content get <url> [url...] Scrape web page body text (supports multiple URLs) --format、--links
tinyfish agent run "goal" --url <url> Browser automation --sync、--async
tinyfish agent run list List run records --status、--limit
tinyfish agent run get <id> Get run details —
tinyfish agent run cancel <id> Cancel run —
tinyfish agent batch run --input <csv> Batch tasks —
tinyfish agent batch list List batch tasks —
tinyfish agent batch get <id> Get batch results —
tinyfish browser session create Create remote browser --url

General Rules

  • All commands output JSON to stdout by default, errors go to stderr (JSON format), failure exit code 1
  • All commands support --pretty to get human-readable output
  • When invoking agent run in the Bash tool,always use --sync to get complete results
  • When troubleshooting, add --debug or set TINYFISH_DEBUG=1 to view HTTP request logs

Common Errors

  • agent run Missing --url parameter (required)
  • When parsing JSON in streaming mode, did not process line by line (each line is an independent JSON object)
  • batch run 's CSV is missing the url or goal column
  • Calling commands directly when unauthenticated (first tinyfish auth status check)

Load on Demand

When you need the complete flags and output format for search or fetch , read references/search-and-fetch.md。

When you need detailed descriptions of the three modes of agent run , thebatch command, or run management commands, read references/agent-run.md。

When you need the CDP URL description and programmatic control usage for browser session create , read references/browser-session.md。