explain_data_fetching
Inspect Nuxt pages, components, or URLs to list data-fetching calls with URL/key, method, and options, then flag duplicate keys and risky fetching patterns for static review.
Instructions
List useFetch / useLazyFetch / useAsyncData / useLazyAsyncData / $fetch calls with URL or key, method and detected options, and flag duplicate keys, $fetch in onMounted, bare await $fetch at setup top level, server: false without lazy, and lazy results rendered without pending/status. Accepts a page/component file or a URL resolved like explain_route. Static analysis only — no DevServer or nuxi prepare.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "explain_data_fetching"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional page/component file (or directory) or a concrete URL like /users/42. Omit to scan all pages, components, layouts and composables. | |
| root | No | Optional project root override (defaults to the server project path) |