Pushing prompt without sending it to AI chatbox

I’ve moved to use Antigravity more and more and I want to move my fun VS Code extension to Antigravity: marketplace visualstudio spin-the-wheel

One of its capabilities is to push the spin winning option as is or as part of a prompt to the chatbox,

So far I found 2 options I might been miss using:

  1. await vscode.commands.executeCommand('antigravity.prioritized.chat.openNewConversation');
    

    It just open the chatbox and doesn’t take any more parameters

  2. await vscode.commands.executeCommand('antigravity.sendTextToChat', true, query);
    

    The first param, as long it’s not false or null the query param will be pushed into the chatbox, but the query variable will be shown as mentioned (@…) and not just prompt injected

Gemini 3 Pro and Flash has no clue how to solve it and I can’t find the documentation for those, someone can help me send the query as string to the chatbox?

I also tried using:

'workbench.action.chat.open'

It didn’t work

Trying:

await vscode.commands.executeCommand('antigravity.sendTextToChat', true, {...});

Will put in the chatbox:

@[object Object] 

Struggling with this as well. I’ve only been able to add @tagged text to a new agent conversation. I’ve not found a way to prevent adding the @ tag, nor how to actually send the text entered into the agent prompt window.