spec_get
Fetch a specific section or item from an OpenAPI specification file, either local or remote, with optional $ref resolution and source 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| section | Yes | ||
| spec_path | Yes | ||
| resolve_refs | No |