get_diagnostics
Retrieve TypeScript diagnostics (errors and warnings) for a single file by specifying root directory and file path, with optional virtual content. Part of the NewsDigest MCP server for news article processing.
Instructions
Get TypeScript diagnostics (errors, warnings) for a single file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filePath | Yes | File path to check for diagnostics (relative to root) | |
root | Yes | Root directory for resolving relative paths | |
virtualContent | No | Virtual content to use for diagnostics instead of file content |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"filePath": {
"description": "File path to check for diagnostics (relative to root)",
"type": "string"
},
"root": {
"description": "Root directory for resolving relative paths",
"type": "string"
},
"virtualContent": {
"description": "Virtual content to use for diagnostics instead of file content",
"type": "string"
}
},
"required": [
"root",
"filePath"
],
"type": "object"
}