Skip to content

remote_read

MCP tools › Remote, rooms and agents

Read a file on an SSH host (at most 10 MiB) as UTF-8 text (invalid bytes replaced) with its stamp (POSIX cksum), to pass to remote_write so a change made on the host meanwhile is not overwritten. Needs the user-granted ssh right.

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

Capabilityremote.remote_read
AreaRemote, rooms and agents
Accesschanges remote
Reachesprocess, network
Rightsssh
Dry runnone

Arguments

ArgumentTypeDescription
hostrequiredstringHost alias from ~/.ssh/config or [user@]host[:port].
pathrequiredstringAbsolute path of the file on the host.

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 remote_read '{"host":"<string>","path":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"host",
"path"
],
"properties": {
"host": {
"description": "Host alias from `~/.ssh/config` or `[user@]host[:port]`.",
"type": "string"
},
"path": {
"description": "Absolute path of the file on the host.",
"type": "string"
}
}
}