You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns the current action catalog derived from connected OpenAPI sources.
199
+
200
+
**Response:**
201
+
```ts
202
+
interfaceCatalogResponse {
203
+
/** Available actions from all connected OpenAPI sources */
204
+
actions:CatalogAction[];
205
+
/** Connected OpenAPI service descriptors */
206
+
services:CatalogService[];
207
+
/** Catalog version — changes when actions are added or removed */
208
+
version:string;
209
+
}
210
+
211
+
interfaceCatalogAction {
212
+
/** Tool name (e.g., "user-service_listUsers") */
213
+
name:string;
214
+
/** Human-readable description from the OpenAPI spec */
215
+
description?:string;
216
+
/** JSON Schema for the tool's input parameters */
217
+
inputSchema?:Record<string, unknown>;
218
+
/** Name of the service this action belongs to */
219
+
service:string;
220
+
/** Tags from the OpenAPI operation */
221
+
tags?:string[];
222
+
/** Whether the operation is deprecated */
223
+
deprecated?:boolean;
224
+
}
225
+
226
+
interfaceCatalogService {
227
+
/** Service name (from OpenApiSourceConfig.name) */
228
+
name:string;
229
+
/** Internal spec URL */
230
+
specUrl:string;
231
+
/** ISO 8601 timestamp of the last successful spec poll */
232
+
lastUpdated:string;
233
+
/** Number of actions from this service */
234
+
actionCount:number;
235
+
}
236
+
```
237
+
238
+
**Version semantics:** The `version` field is a deterministic hash of all source spec hashes. It changes whenever an OpenAPI spec is polled with additions or removals. Consumers can compare version strings to detect catalog changes.
239
+
240
+
**Example:**
241
+
```bash
242
+
curl http://localhost:3001/code/actions
243
+
```
244
+
245
+
```json
246
+
{
247
+
"actions": [
248
+
{
249
+
"name": "user-service_listUsers",
250
+
"description": "List all users",
251
+
"service": "user-service"
252
+
},
253
+
{
254
+
"name": "user-service_getUser",
255
+
"description": "Get user by ID",
256
+
"service": "user-service"
257
+
}
258
+
],
259
+
"services": [
260
+
{
261
+
"name": "user-service",
262
+
"specUrl": "",
263
+
"lastUpdated": "2026-03-31T12:00:00.000Z",
264
+
"actionCount": 2
265
+
}
266
+
],
267
+
"version": "a1b2c3d4..."
268
+
}
269
+
```
270
+
271
+
**Wiring:** Use `CatalogHandler` to register this route:
0 commit comments