Launch Neovim
nvim_launchLaunch an isolated Neovim instance, attach as a UI client, and receive a session ID for UI automation and testing.
Instructions
Launch an isolated, disposable Neovim instance owned by this server and attach to it as a UI client. Returns a session id for the other tools. Use nvim_close when finished.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the new instance. | |
| args | No | Extra Neovim arguments. | |
| cols | No | Screen width. Default 80. | |
| file | No | File to open on startup. | |
| init | No | Path to an init file (-u). Ignored when clean is set. | |
| rows | No | Screen height. Default 24. | |
| clean | No | Start with --clean: no plugins, no shada, no user config. Recommended for tests. | |
| nvimPath | No | Neovim executable. Defaults to nvim on PATH. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| cols | Yes | ||
| mode | Yes | ||
| rows | Yes | ||
| sessionId | Yes |