generate_nextjs_page
Generate a Next.js 14+ App Router page with Server/Client components, metadata, and data fetching patterns
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": {
"pageName": "<pageName>"
},
"name": "generate_nextjs_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageName | Yes | Page route segment (e.g. dashboard, products/[id]) | |
| withError | No | Include error.tsx boundary | |
| withLayout | No | Include layout.tsx | |
| withLoading | No | Include loading.tsx skeleton | |
| dataFetching | No | Data fetching strategy | |
| withMetadata | No | Include generateMetadata function | |
| isServerComponent | No | Generate as Server Component (default: true) |