feat(tools): Add 11 new MCP tools for agent workflows#11
Open
Conversation
New pane tools: snapshot_pane (rich capture with cursor/mode/scroll metadata), wait_for_content_change (detect any screen change), select_pane (directional navigation), swap_pane, pipe_pane, display_message (tmux format string queries), enter_copy_mode, exit_copy_mode, paste_text (bracketed paste via tmux buffers). New session tool: select_window (navigate by ID/index/direction). New window tool: move_window (reorder or cross-session moves). Models: PaneSnapshot, ContentChangeResult. Tests: 22 new tests covering all new tools.
Document snapshot_pane, wait_for_content_change, display_message, select_pane, select_window, swap_pane, move_window, pipe_pane, enter_copy_mode, exit_copy_mode, and paste_text with usage guidance, JSON examples, and parameter tables following existing patterns. Update tools/index.md with new grid cards and expanded "Which tool do I want?" decision guide covering navigation, layout, scrollback, and paste workflows.
6 tasks
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11 +/- ##
==========================================
+ Coverage 71.10% 73.71% +2.61%
==========================================
Files 20 20
Lines 1419 1598 +179
Branches 186 201 +15
==========================================
+ Hits 1009 1178 +169
- Misses 365 367 +2
- Partials 45 53 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
snapshot_pane,wait_for_content_change,select_pane,select_window,swap_pane,move_window,pipe_pane,display_message,enter_copy_mode,exit_copy_mode,paste_textPaneSnapshot,ContentChangeResultThese tools fill gaps in the agent workflow:
snapshot_paneprovides rich screen capture (cursor, mode, scroll state),wait_for_content_changedetects any screen change without knowing the expected output,select_pane/select_windowenable navigation, andpaste_textsupports bracketed multi-line input via tmux buffers.Test plan
uv run ruff check . --fix --show-fixespassesuv run ruff format .— no changesuv run mypy— no issuesuv run py.test --reruns 0 -vvv— 229 tests pass