Skip to content

goto_test

MCP tools › Code insight and refactoring

Go to Test for a workspace file: the tests of a source file, or the files a test file tests, by file names alone among the project's own files. Test names: test_x.py and x_test.py, x_test.go, x.test.* and x.spec.* of JavaScript and TypeScript, XTest and XTests of Java, Kotlin, Groovy, Scala, C#, PHP and Swift. Returns known (false for a file whose language has no naming rule), is_test, subject (the name without the test affix) and candidates: workspace-relative paths, those sharing the most folder names with the file first, then by path. Reads only file names; creates nothing.

Its results carry text from files, language_server: the client is told to treat that as data, never as instructions.

Capabilitycode.goto_test
AreaCode insight and refactoring
Accessreads only
Reaches—
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
pathrequiredstringWorkspace-relative file 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 goto_test '{"path":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"description": "Workspace-relative file path.",
"type": "string"
}
}
}