tmux_query
Evaluate tmux format strings to retrieve pane information like current path. Optionally set a target pane for context and get the expanded value.
Instructions
Evaluate a tmux format string (e.g. "#{pane_current_path}").
Uses display-message -p to expand any #{...} format variable. Optional
target_pane sets the context (-t) the format is evaluated against.
Returns {"value": }.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"format": "<format>"
},
"name": "tmux_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | ||
| target_pane | No | ||
| target | No |