{"ok":true,"data":{"tool":{"slug":"javascript-formatter","name":"JavaScript Formatter","section":"tools","category":"Developer Tools","subcategory":"Code Formatters","url":"/tools/code-formatters/javascript-formatter/","status":"live","api_mode":"not_available","webmcp_mode":"navigate_only","processing_mode":"client-side","privacy_mode":"no-data-stored","summary":"Apply readable indentation and line breaks to JavaScript source.","input_schema":{"type":"object","properties":{"javascript":{"type":"string","description":"Enter the javascript source used by this tool."},"indent_spaces":{"type":"number","description":"Enter the indentation used by this tool.","minimum":0,"maximum":8},"space_around_operators":{"type":"boolean","description":"Enter the space around common operators used by this tool."}},"required":["javascript","indent_spaces"],"additionalProperties":false},"output_schema":{"type":"object","properties":{"formatted_javascript":{"type":"string","description":"Formatted JavaScript produced by the tool."},"line_count":{"type":"number","description":"Formatted lines produced by the tool."},"source_bytes":{"type":"number","description":"Source bytes produced by the tool."},"formatted_bytes":{"type":"number","description":"Formatted bytes produced by the tool."}},"additionalProperties":false},"examples":[{"title":"JavaScript Formatter example","description":null,"input":{"javascript":"function greet(name){const message=`Hello, ${name}`;return message;}console.log(greet(\"Ada\"));","indent_spaces":2,"space_around_operators":true},"output":{"formatted_javascript":"function greet(name) {\n const message = `Hello, ${name}`;\n return message;\n}\nconsole.log(greet(\"Ada\"));","line_count":5,"source_bytes":94,"formatted_bytes":103}}],"capability":null}},"meta":{"api_status":"preview","execution":"unavailable"},"request_id":"b7212e82f6fbcd2f57fbe4b3"}