launch_script
Run a Python/pwntools script in WSL2 and get its output, return code, or a new GDB session ID if it launches GDB with the MCP plugin.
Instructions
Launch a Python (typically pwntools) script inside WSL2. script
must be an absolute Windows or WSL file path; inline code is not
supported. If the script starts gdb with the MCP plugin loaded (via
gdb_args/gdbscript), the new gdb session id is returned once it
registers. A script that exits without gdb returns immediately with
its state, return code, and log tail.
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": {
"script": "<script>"
},
"name": "launch_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| args | No | ||
| distro | No | ||
| python | No | python3 | |
| script | Yes | ||
| attach_timeout_ms | No |