v68

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-07344691.3 MB
Scripts

Run a reusable or inline script

Inline source skips typecheck and is auto-saved as a scratch script only on success.

post/api/scripts/run

Request body

namestring
sourcestring
{"stackTrail":"paths:/api/scripts/run:post:requestBody:content:application/json:schema:properties:args","oasType":"schema","type":"unknown"}
intentstring
scope'global' | 'agent'
fsMode'none' | 'workspace-rw'
idempotencyKeystring

Response

Script run completed

{"stackTrail":"paths:/api/scripts/run:post:responses:200:content:application/json:schema:properties:result","oasType":"schema","type":"unknown"}
durationMsnumber required
stdoutstring required
stderrstring required
exitCodenumber required
error'timeout' | 'oom' | 'killed' | 'import_violation' | 'eval_error' | 'executor_error'