Send Input to Session
fc_send_inputSends text input to a running session by ID, optionally appending a newline, to execute commands or code in that session.
Instructions
Sends input to a running session.
Args:
session_id (string): Session ID
input (string): Input to send
newline (boolean, optional): Append newline (default: true)
Examples:
Python: input="print('Hello')"
Shell: input="ls -la"
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>",
"input": "<input>"
},
"name": "fc_send_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Input to send | |
| newline | No | Append newline | |
| session_id | Yes | Session ID |