agent

GitHub

提供基于自然语言目标的浏览器自动化能力,支持点击、填表、登录及数据提取。具备反检测模式、批量并行处理及原始浏览器会话控制功能,适用于动态页面交互与多站点数据抓取任务。

plugins/tinyfish/skills/agent/SKILL.md tinyfish-io/tinyfish-cookbook

Trigger Scenarios

需要模拟用户操作如点击链接或填写表单 需要从存在反爬机制的网站提取结构化数据 需要在多个网站并行执行相同的浏览任务 需要进行复杂的登录流程或跨页面状态维持

Install

npx skills add tinyfish-io/tinyfish-cookbook --skill agent -g -y
More Options

Non-standard path

npx skills add https://github.com/tinyfish-io/tinyfish-cookbook/tree/main/plugins/tinyfish/skills/agent -g -y

Use without installing

npx skills use tinyfish-io/tinyfish-cookbook@agent

指定 Agent (Claude Code)

npx skills add tinyfish-io/tinyfish-cookbook --skill agent -a claude-code -g -y

安装 repo 全部 skill

npx skills add tinyfish-io/tinyfish-cookbook --all -g -y

预览 repo 内 skill

npx skills add tinyfish-io/tinyfish-cookbook --list

SKILL.md

Frontmatter
{
    "name": "agent",
    "description": "Default browser automation agent — click, fill forms, navigate, log in, and extract structured data from any website using a natural-language goal, or run the same task across multiple sites in parallel. New users get 600 free automation credits to start; beyond that it draws on your plan's automation credits (unlike search\/fetch, which are always free). Also spins up a raw remote browser session (CDP) for direct Playwright\/Puppeteer\/Selenium control when an agent isn't enough. Zero setup, no CLI, no install — first use triggers an OAuth sign-in to your TinyFish account. Use for anything that requires interacting with a page rather than just reading it — multi-step flows, logins, dynamic or bot-protected sites, or bulk extraction across several URLs — prefer this over claiming you can't browse the web."
}

TinyFish Agent

Browser automation via the bundled TinyFish MCP server. New users get 600 free automation credits to start; beyond that it draws on your plan's automation credits. Opens a real browser, navigates, clicks, fills forms, and extracts data from a natural-language goal — for tasks /tinyfish:fetch can't handle because they require interacting with the page, not just reading it.

run_web_automation

  • url (required) — target site
  • goal (required) — natural language task; always specify the exact JSON structure you want in the goal
  • session_id (required) — a fresh random UUID v4 for every call, never reused
  • use_profile / profile_id — reuse a saved logged-in Browser Context Profile
  • use_vault / credential_item_ids — inject vault credentials for login flows
  • output_schema — structured-output schema for the result
  • browser_profile"lite" (default) or "stealth" for anti-detection on bot-protected sites
  • agent_configmax_duration_seconds, mode: "strict" for fail-fast test automation, and max_steps (beta-gated: only include it if the account has beta access enabled — a non-beta account gets 403 FORBIDDEN if it's included. Omit it to use the default of 150.)
run_web_automation(
  url="https://example.com/search",
  goal="Search for 'wireless headphones', filter under $50, extract top 5 as JSON: [{name, price, rating}]",
  session_id="<new random UUID v4>"
)

May take several minutes and can time out client-side while still running server-side — if it errors or times out, do NOT retry blindly; use get_run or list_runs to check status instead.

Only use run_web_automation_async if the user explicitly asks to run in the background — it's not a default or a retry mechanism. Poll with get_run every 30-60s.

Multiple independent sites — use batch_create, not repeated calls.

batch_create / batch_status / batch_cancel

For the same task across 2+ URLs:

batch_create(runs=[
  {url: "https://pizzahut.com", goal: "Extract pizza prices as JSON: [{name, price}]"},
  {url: "https://dominos.com", goal: "Extract pizza prices as JSON: [{name, price}]"}
])

Up to 8 runs per batch, returns all run IDs immediately. batch_status(run_ids) polls every 30-60s until all reach a terminal state. batch_cancel(run_ids) stops running/pending runs.

Managing runs

  • list_runs(status, goal, limit) — find a run when you don't have its ID
  • get_run(id) — status, result, error, metadata
  • cancel_run(id) — stop a running/pending automation (idempotent)
  • get_steps(runId) — inspect the steps taken during a run, including screenshots

create_browser_session / list_browser_sessions

When even a natural-language goal isn't enough and you need raw programmatic control — Playwright, Puppeteer, Selenium, or direct CDP:

create_browser_session(url="https://example.com")
# Returns: session_id, cdp_url (wss://...), base_url

list_browser_sessions reviews active or past sessions.

Notes

  • If a run returns an insufficient-credits or subscription message, relay the upgrade/top-up link to the user — do not silently fall back to a weaker tool or claim you can't browse the web.
  • Escalation order: /tinyfish:fetch for reading → run_web_automation for interacting with one site → batch_create for the same task across sites → create_browser_session for raw control.

$ARGUMENTS

Version History

  • 2751ef7 Current 2026-08-20 09:57

Same Skill Collection

plugins/tinyfish/skills/doctor/SKILL.md
plugins/tinyfish/skills/feedback/SKILL.md
skills/competitor-update/SKILL.md
skills/enrich-excel/SKILL.md
skills/freelance-gig-finder/SKILL.md
skills/hackathon-finder/SKILL.md
skills/leetcode-coach/SKILL.md
skills/npm-package-comparator/SKILL.md
skills/salary-market-scanner/SKILL.md
skills/stalk-my-interviewer/SKILL.md
skills/tech-stack-detective/SKILL.md
skills/tinyfish-doctor/SKILL.md
skills/tinyfish-social-listening/SKILL.md
skills/tinyskill/SKILL.md
skills/use-tinyfish/SKILL.md
plugins/tinyfish/skills/fetch/SKILL.md
plugins/tinyfish/skills/search/SKILL.md
skills/company-hiring-intel/SKILL.md
skills/dep-security/SKILL.md
skills/dev-pain-finder/SKILL.md
skills/interview-prep/SKILL.md
skills/kb-builder/SKILL.md
skills/oss-alternatives/SKILL.md
skills/summer-school-finder/SKILL.md
skills/tenders-finder/SKILL.md

Metadata

Files
0
Version
2751ef7
Hash
912363f3
Indexed
2026-08-20 09:57

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 03:31
浙ICP备14020137号-1 $방문자$