format_javascript
Formats unminified or messy JavaScript and CSS code by adjusting indentation and structure for improved readability.
Instructions
Format and beautify JavaScript/CSS code
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": {
"code": "<code>",
"type": "<type>"
},
"name": "format_javascript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript or CSS code to prettify | |
| type | Yes | Type of code to format | |
| indentSize | No | Number of spaces for indentation |