## Get consumed OpenAPI spec `$ cadenya tool-sets get-openapi-spec` **get** `/v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/openapi_spec` Retrieves the current OpenAPI specification JSON that has been consumed by the tool set. Only applicable to tool sets using the OpenAPI adapter. ### Parameters - `--workspace-id: string` Workspace ID. - `--tool-set-id: string` Tool set ID. Accepts the canonical ts_… form or the external_id: form. ### Returns - `ToolSetGetOpenAPISpecResponse: object { spec }` - `spec: optional string` The consumed OpenAPI specification as a JSON string. ### Example ```cli cadenya tool-sets get-openapi-spec \ --api-key 'My API Key' \ --workspace-id workspaceId \ --tool-set-id toolSetId ``` #### Response ```json { "spec": "spec" } ```