← 返回
未分类 Key 中文

Tinyfish Agent Run

Run a TinyFish automation agent against a URL and stream live progress events (STARTED / PROGRESS / COMPLETE) as one-line JSON events. Use when you want to e...
对 URL 运行 TinyFish 自动化代理,并以单行 JSON 形式流式返回实时进度事件(STARTED / PROGRESS / COMPLETE)。在你想要…时使用。
bunsdev
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 391
下载
💾 0
安装
1
版本
#latest

概述

TinyFish Agent Run

Execute an autonomous browsing goal against a URL and stream live events. Each SSE event is re-emitted on stdout as a single JSON line so a caller (subagent, TUI, etc.) can display progress as it arrives.

Requires: TINYFISH_API_KEY environment variable.

Pre-flight Check (REQUIRED)

[ -n "$TINYFISH_API_KEY" ] && echo "TINYFISH_API_KEY is set" || echo "TINYFISH_API_KEY is NOT set"

If the key is not set, stop and ask the user to add it. Get one at .

Streaming Run

scripts/agent-run.sh <url> <goal>

Example:

scripts/agent-run.sh https://scrapeme.live/shop "Extract the first 2 product names and prices. Return JSON."

Under the hood this POSTs to https://agent.tinyfish.ai/v1/automation/run-sse with:

{
  "url": "https://scrapeme.live/shop",
  "goal": "Extract the first 2 product names and prices. Return JSON."
}

and the header X-API-Key: $TINYFISH_API_KEY.

Output Format

One JSON object per line on stdout:

{"type":"STARTED","run_id":"abc123"}
{"type":"PROGRESS","run_id":"abc123","purpose":"Navigating to https://scrapeme.live/shop"}
{"type":"PROGRESS","run_id":"abc123","purpose":"Reading product list"}
{"type":"COMPLETE","run_id":"abc123","status":"COMPLETED","result":{...}}

A caller can:

  • Render each PROGRESS.purpose as a live status line.
  • Detect navigation by matching purpose against Navigating to and surface the URL to an embedded browser view.
  • Parse COMPLETE.result for the final payload.

Event Types

  • STARTED{type, run_id} — emitted once when the run begins.
  • PROGRESS{type, run_id, purpose} — one per agent step. purpose is a short human-readable description.
  • COMPLETE{type, run_id, status, result} — emitted once when the run finishes. status is typically COMPLETED.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 07:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Tinyfish Fetch

bunsdev
通过 TinyFish Fetch API 获取网页,返回干净的 Markdown、HTML 或截图,支持 JS 渲染和代理。适用于需要读取特定页面的场景。
★ 0 📥 414

EPUB ↔ PDF Converter

bunsdev
双向互转 EPUB 与 PDF。EPUB→PDF 保持排版便于分析;PDF→EPUB 压缩重排用于分发和阅读器。
★ 0 📥 335

Tinyfish Browser

bunsdev
通过 TinyFish Browser API 启动远程浏览器会话并获取 CDP URL,以便自动化控制。适用于需要可自动化的Chromium 会话(Playwright)。
★ 0 📥 402