diff --git a/apps/engine/docs/openapi.yaml b/apps/engine/docs/openapi.yaml index 15fa333146..75a8cd5783 100644 --- a/apps/engine/docs/openapi.yaml +++ b/apps/engine/docs/openapi.yaml @@ -3704,6 +3704,60 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + "/v1/workers/{id}/tools/refresh": + post: + security: + - Bearer: [] + description: Re-read a worker's tools from the server and replace its tool + catalog with them + tags: + - Admin + summary: Refresh a worker's tools + operationId: workers-tools-refresh + parameters: + - description: Worker ID + name: id + in: path + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.WorkerToolsRefreshResponse" + "400": + description: Bad Request + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" + "403": + description: Forbidden + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" + "404": + description: Not Found + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" + "409": + description: Conflict + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" + "502": + description: Bad Gateway + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" externalDocs: description: Documentation url: https://docs.arcade.dev @@ -4150,11 +4204,19 @@ components: properties: bytes: type: string + command: + type: string + maxLength: 1000 entrypoint: type: string maxLength: 256 name: type: string + protocol: + type: string + enum: + - arcade + - mcp type: type: string enum: @@ -6022,6 +6084,10 @@ components: schemas.ToolExecutionAttemptResponse: type: object properties: + elicitation: + type: array + items: + type: object finished_at: type: string id: @@ -6824,6 +6890,13 @@ components: $ref: "#/components/schemas/schemas.ServerInfoResponse" success: type: boolean + schemas.WorkerToolsRefreshResponse: + type: object + properties: + id: + type: string + tool_count: + type: integer schemas.WorkerType: type: string enum: