create_interaction
Create a new agent interaction by providing a task prompt, optional tools, images, and configuration for autonomous code execution or browsing in a sandbox environment.
Instructions
Create a new Antigravity agent interaction.
Args: prompt: Task instruction or prompt for the agent. agent: Agent identifier (default: antigravity-preview-05-2026). model: Model name for agent_config (e.g. gemini-3.6-flash, gemini-3.5-flash-lite). environment: Sandbox environment mode ('remote' or existing environment_id). tools: List of custom tool dicts (code_execution, google_search, url_context, mcp_server, function). images: Optional list of base64 images, e.g. [{"data": "", "mime_type": "image/png"}]. max_total_tokens: Optional token budget cap for the interaction. background: Run asynchronously; poll with get_interaction_status. Forces store=True. system_instruction: Optional behavior/persona override for this interaction. stream: Stream the response via the SDK (ignored by the REST fallback path).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | antigravity-preview-05-2026 | |
| model | No | gemini-3.6-flash | |
| tools | No | ||
| images | No | ||
| prompt | Yes | ||
| stream | No | ||
| background | No | ||
| environment | No | remote | |
| max_total_tokens | No | ||
| system_instruction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |