V8 Isolates · Vercel AI SDK · Cloudflare Workers
Give Vercel AI SDK & Cloudflare Workers agents a real Linux computer, browser, and `.xlsx` / `.pdf` workspace.
V8 edge isolates have no child_process, no disk, no Python, and no Chromium. Drop in zero-dependency tesi-sdk.mjs (7 native tool definitions, pure WebCrypto + fetch) or connect to /api/v1/agents/mcp with a one-time $10 USD tesi_ak_... key—zero monthly fee, $0/min idle VM burn.
Pure WebCrypto + fetch · 7 native tools incl. binary file I/O · Idempotent mw_... recovery.
1. Bind 7 Linux + Binary File Tools in Cloudflare Workers / Vercel Edge
import { TesiAgentClient, tesiToolDefinitions } from './tesi-sdk.mjs';
export default {
async fetch(req, env) {
const tesi = new TesiAgentClient({ apiKey: env.TESI_API_KEY });
// 7 tools: tesi_work, tesi_ask, tesi_quote, tesi_balance,
// tesi_files_list, tesi_upload_file, tesi_download_file
const res = await tesi.executeToolCall('tesi_work', {
message: 'Build Q4 revenue.xlsx + summary.pdf in /home/user/workspace.',
acceptanceChecks: ['Zero #REF! formula errors; report SHA-256 digests.'],
});
const files = await tesi.executeToolCall('tesi_files_list', {});
return Response.json({ reply: res.reply, files, toolCount: tesiToolDefinitions.length });
},
};
Questions
Edge & serverless agent FAQ.
Does tesi-sdk.mjs work inside Cloudflare Workers and Vercel Edge V8 isolates without Node.js polyfills?
Yes. tesi-sdk.mjs uses standard WebCrypto (crypto.subtle.digest), fetch, TextEncoder, and btoa/atob—zero Node-only fs or child_process imports at runtime when you pass apiKey from your Worker secret binding.
How many tool definitions are included in tesiToolDefinitions for Vercel AI SDK and function calling?
Seven ready-to-bind tools: tesi_work, tesi_ask, tesi_quote, tesi_balance, tesi_files_list, tesi_upload_file, and tesi_download_file—giving edge agents full Linux execution plus SHA-256 verified binary .xlsx, .pdf, and .png file transfers.
What happens if an edge function times out while TESI Work is running a test suite?
Every turn uses a deterministic mw_... requestId. If an edge invocation hits a wall-clock timeout, the next invocation calls GET /api/v1/agents/turns/{requestId} (or re-calls work with the same requestId) to recover the verified reply without double-charging.
Scale serverless agents