scaffold
Generate boilerplate code tailored to your project's detected conventions, covering React components, Express routes, tests, services, hooks, and utils. Returns code as text without writing files to disk.
Instructions
Generate boilerplate code based on detected project conventions. Returns generated code as text output — does NOT write files to disk. Templates: component (React), route (Express), test, service, hook, util. Auto-detects TypeScript, testing framework, CSS framework, and ORM.
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": {
"action": "<action>"
},
"name": "scaffold"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the generated code (e.g. "UserProfile", "auth") | |
| action | Yes | "list" to see available templates, "generate" to create code | |
| template | No | Template name: component, test, route, service, hook, util | |
| target_file | No | For test template: path to the file being tested |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| action | Yes |