repl_start
Starts an interactive REPL process with a specified command and regex prompt pattern, enabling clients to begin and interact with command-line sessions.
Instructions
Start an interactive REPL process with prompt detection
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": {
"command": "<command>",
"prompt": "<prompt>"
},
"name": "repl_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory | |
| env | No | Additional environment variables | |
| args | No | Command arguments | |
| prompt | Yes | Regex pattern to detect prompt (e.g., '^>>> $') | |
| command | Yes | Command to run (e.g., 'python', 'node') | |
| initialTimeout | No | Max milliseconds to wait for initial prompt (default: 30000) |