Open a terminal
nvim_open_terminalOpens a persistent terminal in Neovim for interactive or long-running sessions, returning buffer, channel, and job IDs to send input and read output.
Instructions
Open a persistent terminal inside Neovim and return its buffer number, channel and job id. Use nvim_terminal_send to type into it and nvim_terminal_read to read its screen. Use this for interactive or long-running sessions; for one-shot commands prefer nvim_run_in_terminal.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nvim_open_terminal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmd | No | Program to run. Default: the user's shell. | |
| cwd | No | Working directory. | |
| name | No | Optional display name for the terminal buffer. | |
| focus | No | Move the cursor into the terminal window. Default false. | |
| split | No | Where to show it. Default 'horizontal'. |