## Get consumed OpenAPI spec `tool_sets.get_openapi_spec(tool_set_id, **kwargs) -> ToolSetGetOpenAPISpecResponse` **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` - `tool_set_id: String` ### Returns - `class ToolSetGetOpenAPISpecResponse` - `spec: String` The consumed OpenAPI specification as a JSON string. ### Example ```ruby require "cadenya" cadenya = Cadenya::Client.new(api_key: "My API Key") response = cadenya.tool_sets.get_openapi_spec("toolSetId", workspace_id: "workspaceId") puts(response) ``` #### Response ```json { "spec": "spec" } ```