Install
openclaw skills install cursor-tuiSpawn and relay Cursor Agent's CLI (`agent` binary) as an interactive passthrough. Use when the user wants to run Cursor Agent in a directory, ask it questions, or send follow-up prompts — acting as a transparent bridge between the user and the agent session.
openclaw skills install cursor-tuiSpawn Cursor's agent in a PTY background session and relay its output and the user's inputs as a silent passthrough.
{ "tool": "exec", "command": "agent", "pty": true, "background": true, "workdir": "<project-dir>", "yieldMs": 3000 }
workdir to the project directory the user wants to work in (not the OpenClaw workspace).agent requires workspace trust on first run in a directory — relay the trust prompt and send the user's choice (e.g. a, w, or q) via process send-keys.After spawning or sending input, poll for output:
{ "tool": "process", "action": "poll", "sessionId": "<id>", "timeout": 15000 }
[YourName]) so it's clearly distinguished from Cursor's output.cursor @ <workdir> — use ~ in place of the user's home directory (e.g. ~/repos/myproject not /home/username/repos/myproject).For single-line prompts:
{ "tool": "process", "action": "submit", "sessionId": "<id>", "data": "<text>" }
For multi-line prompts:
{ "tool": "process", "action": "paste", "sessionId": "<id>", "text": "<text>" }
Then submit with Enter:
{ "tool": "process", "action": "send-keys", "sessionId": "<id>", "keys": ["Enter"] }
For other special keys (arrow keys, Escape, etc.):
{ "tool": "process", "action": "send-keys", "sessionId": "<id>", "keys": ["ArrowUp"] }
Use @filename or @directory/ in interactive prompts to add more context.
Send /quit or Ctrl+D (double-press):
{ "tool": "process", "action": "submit", "sessionId": "<id>", "data": "/quit" }
agent is Cursor's CLI binary. cursor-agent is a backward-compatible alias.PATH. If not found, check TOOLS.md for custom binary paths.process list to check for orphaned sessions.