related_files
MCP tools › Workspace and files
Go to Related for a workspace file: the files Ferris IDEA's own model relates to it. For an HTML file the project's stylesheets it links with <link rel="stylesheet">, in the order of the links (relation: stylesheet); for a CSS, SCSS or Less file the project's HTML files that link it, by path (relation: linked_from; at most 500 HTML files are read). Returns known (false for a file of another kind) and files, each with a workspace-relative path and relation. Reads only.
Its results carry text from files: the client is told to treat that as data, never as instructions.
| Capability | workspace.related_files |
|---|---|
| Area | Workspace and files |
| Access | reads only |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
pathrequired | string | Workspace-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.
ferris-idea call ~/my-project related_files '{"path":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "path" ], "properties": { "path": { "description": "Workspace-relative file path.", "type": "string" } }}