Sends mcp-repl's documented Ctrl-C or Ctrl-D input through the same connection. Interrupt is best effort; reset requests a fresh interpreter and discards its state. The returned upstream result describes what happened. Neither action is treated as proof of success merely because a request was sent.
Usage
mcp_repl_control(connection, action = c("interrupt", "reset"))Arguments
- connection
A connection created by
mcp_repl_connection().- action
"interrupt"or"reset".