Agent SwarmAgent Swarm

Scripts

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

POST
/api/mcp-bridge

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/mcp-bridge" \  -H "Content-Type: application/json" \  -d '{    "tool": "string"  }'
Empty
Empty
Empty
Empty
GET
/api/scripts

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

scope?string
Value in"global" | "agent"
includeScratch?string
Value in"true" | "false"

Response Body

curl -X GET "http://localhost:3013/api/scripts"
Empty
Empty
GET
/api/scripts/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid

Response Body

curl -X GET "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
Empty
GET
/api/scripts/{id}/apis

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid

Response Body

curl -X GET "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/apis"
Empty
Empty
POST
/api/scripts/{id}/apis

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/apis" \  -H "Content-Type: application/json" \  -d '{}'
Empty
Empty
Empty
DELETE
/api/scripts/{id}/apis/{endpointId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid
endpointId*string

Response Body

curl -X DELETE "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/apis/string"
Empty
Empty
PATCH
/api/scripts/{id}/apis/{endpointId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid
endpointId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PATCH "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/apis/string" \  -H "Content-Type: application/json" \  -d '{}'
Empty
Empty
POST
/api/scripts/{id}/apis/{endpointId}/rotate

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid
endpointId*string

Response Body

curl -X POST "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/apis/string/rotate"
Empty
Empty
Empty
GET
/api/scripts/{id}/apis/{endpointId}/secret

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid
endpointId*string

Response Body

curl -X GET "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/apis/string/secret"
Empty
Empty
GET
/api/scripts/{id}/versions

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string
Formatuuid

Response Body

curl -X GET "http://localhost:3013/api/scripts/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions"
Empty
Empty
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
GET
/api/scripts/type-defs

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Response Body

curl -X GET "http://localhost:3013/api/scripts/type-defs"
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