lint
Run linter checks and analyze code problems with resolution hints. Supports ruff and flake8 with optional auto-fix.
Instructions
[HINT: Linting tool. action=run|analyze. Run linter or analyze problems.]
Unified linting:
action="run": Execute linter (ruff/flake8), optionally analyze results
action="analyze": Analyze problems JSON with resolution hints
š Output: Linter results or problem analysis š§ Side Effects: May auto-fix issues (with fix=true)
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": "lint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | run | |
| path | No | ||
| linter | No | ruff | |
| fix | No | ||
| analyze | No | ||
| select | No | ||
| ignore | No | ||
| problems_json | No | ||
| include_hints | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |