Zum Hauptinhalt springen

Agent Sandbox — /api/agent/:zid/sandbox*

A server-side Python sandbox (Pyodide) the agent can call. Used for data work an agent needs to run while building — parse, transform, compute — without leaving the machine. Runs are recorded and quota-limited.

Concept: Agents · Pulse Workbench. Source: shared/api-core/src/routes/agentSandbox.ts.

Endpoints

MethodPathAuthNotes
POST/api/agent/:zid/sandbox/runZID-boundExecute Python, return the result.
GET/api/agent/:zid/sandbox/runsZID-boundRecent runs (paginated).
GET/api/agent/:zid/sandbox/quotaZID-boundCheap quota snapshot for the UI.

ZID-bound = authenticated via authenticateZeqAuth; the caller must be the agent calling its own sandbox, or the owner of the machine whose agent it is.