Skip to content

detect_language

MCP tools › Workspace and files

Detect the programming language of a file name; returns the LSP language id or null. A workspace path follows the project's file types (overrides, file name patterns, editor modeline, hashbang line; see file_type).

Capabilityworkspace.detect_language
AreaWorkspace and files
Accessreads only
Reaches—
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
pathrequiredstringFile name or path.

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project detect_language '{"path":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"description": "File name or path.",
"type": "string"
}
}
}