v52

OpenAPI 3.1.0raw.githubusercontent.com2026-08-033240556.8 KB
Scripts

Create or update a reusable script

Explicit script upserts run a TypeScript typecheck before writing.

post/api/scripts/upsert

Request body

namestring required
sourcestring required
descriptionstring
intentstring
scope'global' | 'agent'
fsMode'none' | 'workspace-rw'

Response

Script upserted