Tinyfish cookbook

From bidewio/better-openclaw · View interactive version

Tinyfish cookbook is an AI agent skill from the GitHub repository bidewio/better-openclaw. Use the Tinyfish API to navigate, extract, and automate any website directly using natural language goals without manual selectors. Perfect for web scraping, competitive analysis, and automated QA.

How to use this skill

Skill file

Tinyfish Cookbook

Tinyfish is an API for state-of-the-art web agents that treat real websites like programmable surfaces. Instead of wrestling with headless browsers, CSS selectors, proxies, and edge cases, Tinyfish handles navigation, forms, filters, and dynamic content automatically.

You simply send a target URL and a natural language goal.

Quick Start

You do not need an SDK. Tinyfish is accessed directly via a standard HTTP POST request. You must have a TINYFISH_API_KEY configured in your environment.

Using Fetch / cURL (TypeScript Example)

const response = await fetch("https://agent.tinyfish.ai/v1/automation/run-sse", {
  method: "POST",
  headers: {
    "X-API-Key": process.env.TINYFISH_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://agentql.com",
    goal: "Find all subscription plans and their prices. Return result in json format",
  }),
});

// The endpoint streams Server-Sent Events (SSE). 
// You must handle the stream to capture the final JSON blocks and action updates.
const reader = response.body.getReader();
const decoder = new TextDecoder();

while (true) {
  const { done, value } = await reader.read();
  if (done) break;
  console.log(decoder.decode(value));
}

Core Capabilities

Tinyfish handles the browser internally, including:

When to Use This Skill

You should use the tinyfish-cookbook approach whenever the user asks you to:

Example Goals

Always instruct the API to return structured data if that's what's needed.

Gotchas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.