find_api_callers
Find Nuxt pages, components, composables, layouts, plugins, middleware, and utils that call server API routes via useFetch, useLazyFetch, $fetch, or useAsyncData. Accepts a handler path or URL.
Instructions
Find every page/component/composable/layout/plugin/middleware/util that calls a server API route via useFetch, useLazyFetch, $fetch, or useAsyncData($fetch). Accepts a handler file path (server/api/users/[id].get.ts) or a concrete URL (/api/users/42). Static analysis only — no DevServer or nuxi prepare.
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": {
"target": "<target>"
},
"name": "find_api_callers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Optional project root override (defaults to the server project path) | |
| target | Yes | Server API route target: a handler file path or a concrete URL, e.g. server/api/users/[id].get.ts or /api/users/42 |