Scripts

Create or update a reusable script

Changed on

Explicit script upserts run a TypeScript typecheck before writing.

post/api/scripts/upsert

Request

  • Base URL
    http://localhost:3013
  • URL
    http://localhost:3013/api/scripts/upsert
  • Auth
    HTTP bearer

Request body

namestring required
sourcestring required
descriptionstring
intentstring
scope'global' | 'agent'
fsMode'none' | 'workspace-rw'
executor'native' | 'quickjs' | 'null' nullable

Response

Script upserted

namestring required
versionnumber required
contentDedupedboolean required
warningsstring[]

Advisory quickjs-executor compatibility findings. Never blocks the save.

Changes