Validate Next.js build
nextjs_buildValidate a Next.js project build by running next build and receiving structured TypeScript, module, and page errors, along with generated pages and their render types and sizes.
Instructions
Runs next build and returns structured errors (TypeScript, module, page-level) plus a list of generated pages with their render types and sizes.
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": {
"project_dir": "<project_dir>"
},
"name": "nextjs_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Extra env vars for the build, e.g. { NEXT_PUBLIC_API_URL: '...' } | |
| project_dir | Yes | Absolute path to the Next.js project root | |
| timeout_seconds | No |