feat: add tmux-style process key helpers

This commit is contained in:
Peter Steinberger
2026-01-17 06:12:25 +00:00
parent 331141ad77
commit b31d8d3b10
6 changed files with 495 additions and 2 deletions

View File

@@ -39,6 +39,18 @@ Background + poll:
{"tool":"process","action":"poll","sessionId":"<id>"}
```
Send keys (tmux-style):
```json
{"tool":"process","action":"send-keys","sessionId":"<id>","keys":["Enter"]}
{"tool":"process","action":"send-keys","sessionId":"<id>","keys":["C-c"]}
{"tool":"process","action":"send-keys","sessionId":"<id>","keys":["Up","Up","Enter"]}
```
Paste (bracketed by default):
```json
{"tool":"process","action":"paste","sessionId":"<id>","text":"line1\nline2\n"}
```
## apply_patch (experimental)
`apply_patch` is a subtool of `exec` for structured multi-file edits.