upload_file
Upload a file from the MCP server to a remote host over SFTP. Specify the local and remote paths, with an option to create parent directories.
Instructions
Upload an MCP-server-local file to the remote host over SFTP.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"local_path": "<local_path>",
"remote_path": "<remote_path>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_path | Yes | ||
| session_id | Yes | ||
| remote_path | Yes | ||
| create_parents | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||