cml_openapi
Returns the live OpenAPI specification for Cisco CML2 as a JSON string, enabling programmatic access to API endpoints. Caches results for 24 hours with an option to force refresh.
Instructions
Return CML2's live OpenAPI spec as a JSON string.
Cached at $CML_CACHE_DIR/openapi.json (default ~/.cache/cml/) for 24h. Set refresh=True to force a re-fetch.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cml_openapi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |