Skip to main content
Glama

get_diagnostics

Check TypeScript files for errors and warnings by analyzing code in a specified directory or using virtual content for diagnostics.

Instructions

Get TypeScript diagnostics (errors, warnings) for a single file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootYesRoot directory for resolving relative paths
filePathYesFile path to check for diagnostics (relative to root)
virtualContentNoVirtual content to use for diagnostics instead of file content

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SomeiLam/news-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server