Skip to main content
Glama

write-file

Write content to files on remote SSH servers with options to append, use sudo privileges, or create directories as needed.

Instructions

Write content to a file on the remote server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the file to write
contentYesContent to write to the file
connectionNameNoSSH connection name (optional, default is 'default')
appendNoAppend to file instead of overwriting (optional, default is false)
sudoNoWrite file with sudo privileges (optional, default is false)
createDirsNoCreate parent directories if they don't exist (optional, default is false)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZachFlint/ssh-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server