{"id":"openapi-operation-extract","version":"1.0.0","description":"Extract one OpenAPI operation, merge inherited parameters, and return its local component-reference closure.","supported_operations":["extract OpenAPI operation","select endpoint by path and method","get one OpenAPI endpoint","merge OpenAPI path parameters","collect operation component references","compact an OpenAPI operation"],"unsupported_operations":["resolve remote references over a network","bundle an entire OpenAPI document","validate all OpenAPI semantic requirements"],"semantics":["Accepts OpenAPI 3.0.x and 3.1.x JSON values supplied as an object; it performs bounded structural extraction, not full specification validation.","Path-level parameters are inherited; an operation parameter with the same exact name and in value replaces the path-level parameter.","Only local RFC 6901 fragment references are followed; a nested component pointer includes its complete owning component entry. Remote references, missing pointers, and reference cycles are invalid_input.","Object keys are recursively sorted in the output; array order and the inherited parameter position are deterministic."],"limits":{"max_input_bytes":262144,"max_output_bytes":262144,"max_depth":32,"max_refs":128,"max_parameters":128,"max_path_bytes":2048},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["document","path","method"],"properties":{"document":{},"path":{"type":"string","minLength":1,"maxLength":2048},"method":{"type":"string","enum":["get","put","post","delete","options","head","patch","trace"]}}},"output_schema":{"type":"object","additionalProperties":false,"required":["path","method","operation","components"],"properties":{"path":{"type":"string"},"method":{"type":"string","enum":["get","put","post","delete","options","head","patch","trace"]},"operation":{"type":"object","additionalProperties":{"anyOf":[{},{}]}},"components":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"anyOf":[{},{}]}}}}},"examples":[{"input":{"document":{"openapi":"3.1.0","paths":{"/pets":{"parameters":[{"name":"limit","in":"query","schema":{"type":"integer"}}],"get":{"operationId":"listPets","responses":{"200":{"description":"ok"}}}}}},"path":"/pets","method":"get"},"output":{"components":{},"method":"get","operation":{"operationId":"listPets","parameters":[{"in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"description":"ok"}}},"path":"/pets"}},{"input":{"document":{"openapi":"3.0.3","paths":{"/x":{"post":{"responses":{"204":{"description":"none"}}}}}},"path":"/x","method":"post"},"output":{"components":{},"method":"post","operation":{"responses":{"204":{"description":"none"}}},"path":"/x"}}],"execute_url":"/v1/tools/openapi-operation-extract/versions/1.0.0/execute"}