msf_console_write
Sends arbitrary commands or multiline scripts to a Metasploit console, preserving module, option, and workspace state; read console output separately.
Instructions
Send arbitrary console commands, including multiline scripts.
The console retains state (selected module, options, workspace). This tool only submits input; read output separately. A newline is appended by default.
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": {
"console_id": "<console_id>",
"command": "<command>"
},
"name": "msf_console_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| console_id | Yes | ||
| append_newline | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||