Allow keybindings to trigger slash commands
Feature Request
Currently, keybindings in ~/.claude/keybindings.json can only trigger built-in namespace:action pairs (e.g., chat:submit, app:toggleTodos). There's no way to bind a key to execute a slash command like /converse, /resume, or any MCP-provided command.
Use Case
I use VoiceMode MCP for voice input and frequently need to trigger /converse to start listening. Having to type the command each time adds friction to what should be a quick toggle. A keybinding (e.g., Ctrl+M for mic) would make this seamless.
This applies broadly — any frequently-used slash command or skill would benefit from keybinding support.
Requested Behavior
Add a new action type like chat:executeCommand or command:run that accepts a slash command as a parameter:
[
{
"key": "ctrl+m",
"command": "chat:executeCommand",
"args": "/converse"
}
]
Or alternatively, allow binding to skills/MCP tools directly:
[
{
"key": "ctrl+m",
"command": "mcp:invoke",
"args": "voicemode:converse"
}
]
Current Workaround
Typing /converse manually each time, which works but adds friction for frequently-used commands.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗