Spec Get
spec_getFetch a specific OpenAPI spec item by section and name from a local path or URL, with optional $ref resolution and line numbers.
Instructions
Retrieve a specific item from a local path string or URL source object, with optional $ref resolution and source line numbers. For remote specs, pass spec_path as {"url": "https://example.com/openapi.yaml", "headers": {"Header-Name": "value"}}; headers are optional, only http/https URLs are supported, and successful downloads are cached in memory for 15 minutes with stale fallback on network errors or HTTP 5XX refresh failures.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"section": "<section>",
"name": "<name>",
"spec_path": "<spec_path>"
},
"name": "spec_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| section | Yes | ||
| spec_path | Yes | ||
| resolve_refs | No |