Accept a pending command (non-terminal, e.g. file edit confirmation).
Uses antigravity.command.accept.
This is DIFFERENT from terminalCommand.accept.
Accept the current agent step (code edit, file write, etc.).
Uses antigravity.agent.acceptAgentStep.
Accept a pending terminal command.
Uses antigravity.terminalCommand.accept.
Create a background Cascade conversation via commands.
⚠️ FALLBACK — Uses quick-switch approach (UI flickers briefly). For true headless background sessions, use the SDK's LS bridge:
// Using LSBridge:
const cascadeId = await sdk.ls.createCascade({ text: 'task', modelId: 1018 });
Initial task/prompt to send
Session ID or empty string
Create a new Cascade conversation via VS Code commands.
⚠️ FALLBACK APPROACH — causes UI flickering.
For true headless creation, use sdk.ls.createCascade()
from the SDK's LS bridge (see LSBridge module).
VERIFIED 2026-02-28:
startNewConversation ✅ creates new chat (but switches UI)prioritized.chat.openNewConversation ❌ does NOT create newsendPromptToAgentPanel ✅ sends to currently visible chat (always opens panel)sendTextToChat ❌ does not visibly workSession creation options
Session ID (googleAgentId) or empty string if not detected
Execute a Cascade action.
Uses antigravity.executeCascadeAction.
Action data to execute
Focus the Cascade agent panel
Switch to a specific conversation.
Conversation UUID (googleAgentId)
Focus the agent side panel
Get the browser integration port (e.g., 57401).
Get IDE diagnostics (176KB JSON with system info, logs, trajectories).
Structure (verified):
Parsed diagnostics information
Get the Chrome DevTools MCP URL.
Verified: returns http://127.0.0.1:{port}/mcp
MCP URL string
Get agent preferences (all 16 sentinel values).
Get all known Cascade sessions.
Uses getDiagnostics.recentTrajectories (clean JSON with titles).
List of trajectory entries sorted by recency
Initialize the cascade manager. Loads the initial session list from getDiagnostics.
Check if a file is gitignored.
Relative or absolute file path
true if gitignored, false/null otherwise
Open a new conversation in the agent panel (prioritized command).
Uses antigravity.prioritized.chat.openNewConversation which both
opens the panel AND creates a fresh conversation.
Open the Cascade agent panel
Open the agent side panel
Reject a pending command (non-terminal).
Reject the current agent step.
Reject a pending terminal command.
Run a pending terminal command.
Send a chat action message (e.g., typing indicator, feedback).
Uses antigravity.sendChatActionMessage.
Send a message to the active Cascade conversation.
Uses antigravity.sendTextToChat — the primary text sending command.
Send a prompt directly to the agent panel.
Uses antigravity.sendPromptToAgentPanel — focuses the agent panel.
Manages Cascade conversations.
Primary data source:
antigravity.getDiagnostics→recentTrajectoriesFallback:antigravityUnifiedStateSync.trajectorySummariesprotobuf parsingExample