check_code
Analyze code snippets in JavaScript, TypeScript, Python, Java, Go, PHP, or Ruby to identify bugs, code smells, security issues, and complexity problems without needing a file on disk.
Instructions
Check code quality of a code snippet or content you have in hand — catches bugs, code smells, security issues, and complexity problems. Use to validate code before writing it to disk, review generated code, or check code you've read into context. No file on disk needed.
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": {
"content": "<content>",
"language": "<language>"
},
"name": "check_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The code content to analyze | |
| fileName | No | Optional filename for context (e.g., 'MyComponent.tsx') | |
| language | Yes | Programming language of the content |