get_lang_status
Return whether semantic (Phase B) analysis is available for the language of a given file, and an install hint when it is not. Use it to decide whether call-edge queries on a file will be backed by resolved semantic edges or only by Tree-sitter structural edges.
Input schema
{
"type": "object",
"properties": {
"file": {
"type": "string",
"description": "Repo-relative file path to detect language for"
}
},
"required": ["file"],
"additionalProperties": false
}
Output
Returns a JSON object describing the detected language, whether Phase B is active, and how to enable it if not. Built-in languages (TypeScript/JavaScript, Rust, Python) report active without any install step; the rest report an install hint such as travsr lang install go.
When to use
- Before semantic queries: confirm that
get_blast_radiuswithanalysis: "semantic"orget_callerswill use resolved call edges for this file's language. - Editor integrations: drive a one-click "install language tool" affordance when a file's language is recognized but Phase B is not yet active.
Notes
- Available over both stdio and SSE transports.
- A language present in the repo but not registered in
~/.travsr/lang.tomlreports as inactive with an install hint.