nodejs_format
Format Node.js code with Prettier for consistent style. Options to check without writing or specify files to format.
Instructions
Format code with Prettier
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": "nodejs_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Additional arguments | |
| check | No | Check formatting without writing | |
| files | No | Specific files/patterns to format | |
| write | No | Write formatted files | |
| directory | No | Working directory |