get_diagnostics
Retrieve diagnostic information for a document to identify errors, warnings, and suggestions. Specify language, file path, content, and project root for accurate analysis. Enhance code editing with actionable insights.
Instructions
Get diagnostic information for a document
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | The current content of the file | |
filePath | Yes | Absolute or relative path to the source file | |
languageId | Yes | The language identifier (e.g., "typescript", "javascript") | |
projectRoot | Yes | Important: Root directory of the project for resolving imports and node_modules where the tsconfig.json or jsconfig.json is located |