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:
-
await vscode.commands.executeCommand('antigravity.prioritized.chat.openNewConversation');It just open the chatbox and doesn’t take any more parameters
-
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?