Skip to content

header_source

MCP tools › Workspace and files

Header/Source for a workspace file: the headers of a C, C++ or Objective-C source file, or the sources of a header, by file names alone among the project's own files. Headers are .h .hh .hpp .hxx .h++ .inl, sources .c .cc .cpp .cxx .c++ .m .mm; the counterpart has the same name without the extension. Returns known (false for a file of another language), is_header and candidates: workspace-relative paths, those sharing the most folder names with the file first, then by path. Reads only file names.

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

Capabilityworkspace.header_source
AreaWorkspace and files
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 header_source '{"path":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"description": "Workspace-relative file path.",
"type": "string"
}
}
}