Custom keyboard binding to prompt about my code

Hi,

I asked Cursor Chat how I can generate a custom keyboard binding to prompt about my staged code files and the best it suggested was:

{
    "key": "ctrl+shift+p",
    "command": "runCommands",
    "args": {
        "commands": [
            {
                "command": "composerMode.agent",
                "args": {
                    "prompt": "Review my staged changes and provide feedback"
                }
            },
            {
                "command": "editor.action.submitPrompt"
            }
        ]
    }
}

But this don’t work. How I can create a custom keyboard binding that opens the chat window, introduce a prompt (like the example) and execute it automatically so I can read the response and follow instructions?