Agent SwarmAgent Swarm

Scripts

Author, search, and run reusable TypeScript scripts — a shared automation catalog callable across swarm agents and workflows

DELETE
/api/scripts/{name}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

name*string
Length1 <= length <= 200

Query Parameters

scope?string
Default"agent"
Value in"global" | "agent"

Response Body

curl -X DELETE "http://localhost:3013/api/scripts/string"
Empty
Empty
Empty
GET
/api/scripts/{name}/types

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

name*string
Length1 <= length <= 200

Query Parameters

scope?string
Value in"global" | "agent"

Response Body

curl -X GET "http://localhost:3013/api/scripts/string/types"
Empty
Empty
POST
/api/scripts/run

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "http://localhost:3013/api/scripts/run" \  -H "Content-Type: application/json" \  -d '{}'
Empty
Empty
Empty
Empty
POST
/api/scripts/search

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "http://localhost:3013/api/scripts/search" \  -H "Content-Type: application/json" \  -d '{}'
Empty
Empty
POST
/api/scripts/upsert

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "http://localhost:3013/api/scripts/upsert" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "source": "string"  }'
Empty
Empty
Empty