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?
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.
1 Like
Abhijit_Pramanik I watch another ticket with the same issue: Antigravity Built-in Command for sending a query via a chat to the model
And I see you wrote supply information about the extension to get the docs or feature request?
In my case the extension gives you a spin the wheel with adding options and prompt, and I want it to fill the chat with the prompt + the winning option.
It’s a fun gimmick for learning new subjects, picking who to talk in the daily and for ice breakers