Skip to content
CorkCache.comBot & agent mode
On this device

Bot & agent mode

Every tool on CorkCache.com can be driven by an AI agent, a script or a crawler in the way that suits it. The same engine the buttons use: nothing is uploaded, and results come back as plain JSON.

1 · Read the catalog/tools.json: every tool with its input types and typed parameters (min, max, options, defaults). /llms.txt and /llms-full.txt for language models.
2 · Call in a browserOpen any CorkCache.com page in a headless browser and call window.corkcache. Works with Playwright, Puppeteer, browser-use and computer-use agents.
3 · Command linenode cli/site.mjs run <tool> files… --param=value drives a headless browser for you and writes the outputs to disk.

API

const k = window.corkcache;
k.help()                          // one-paragraph usage
k.categories()                    // [{id, name, tools}]
k.tools("images")                 // [{id, name, category, description}]
k.describe("dust-sweeper")            // JSON schema of params
await k.run("dust-sweeper", [fileOrUrlOrDataUrl], { /* params */ })
  // -> [{ name, mime, size, base64 }]  or { text } / { table }

Try it here

Output appears here.

Etiquette

Crawling is welcome (see robots.txt). The site is static, so there is no rate-limited server API to overload. Each tool page also embeds its schema in <script type="application/json" id="tool-schema">.