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).
| Capability | workspace.detect_language |
|---|---|
| Area | Workspace and files |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
pathrequired | string | File 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.
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" } }}