magento_trace_api
Trace any Magento REST or GraphQL endpoint from URL to concrete implementation by parsing webapi.xml, resolving dependency injection, and reading method bodies, returning the full call chain in a single request.
Instructions
Trace a REST or GraphQL API endpoint from URL to implementation. Parses webapi.xml to find the service interface, resolves the DI preference to the concrete class, reads the execute/method body, and checks di.xml for constructor arguments. Returns the complete chain in one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | REST API URL pattern to trace. Example: "/V1/orders/:orderId/items", "/V1/carts/mine/payment-information" | |
| method | No | HTTP method (GET, PUT, POST, DELETE). Default: any. | |
| interfaceName | No | Alternative: service interface class name. Example: "ChangePaymentMethodInterface" |