All skills
google-antigravity avatar

/google-antigravity-sdk

@2eb7fee

Design, implement, and debug autonomous AI agents and multi-agent systems using the Google Antigravity (AGY) SDK. ACTIVATE this skill when the user wants to create, configure, or orchestrate Google Antigravity agents.

Use this Skill: https://skilld.dev/gh/google-antigravity/antigravity-sdk-python/google-antigravity-sdk

This session only. Nothing lands on disk.

examplesgetting_startedweb_tools.md

≈552 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Web Tools Examples

This guide demonstrates how to enable and use built-in web search and URL content reading tools with an agent.

Enabling Web Search (search_web)

To use the web search tool, you must explicitly enable SEARCH_WEB in the CapabilitiesConfig passed to LocalAgentConfig.

from google.antigravity import Agent, LocalAgentConfig, CapabilitiesConfig, types

# Configure the agent to enable the SEARCH_WEB tool.
config = LocalAgentConfig(
    capabilities=CapabilitiesConfig(
        enabled_tools=[
            types.BuiltinTools.SEARCH_WEB,
        ]
    ),
)

async with Agent(config) as agent:
    response = await agent.chat("What is the current weather and temperature in New York City right now? Please provide the source.")
    print(await response.text())

[!NOTE] When SEARCH_WEB is enabled, the agent can perform web searches to ground its responses with up-to-date information.

Reading URL Content (read_url_content)

To fetch and extract page content directly from a URL, enable READ_URL_CONTENT:

# Configure the agent to enable URL content reading.
config = LocalAgentConfig(
    capabilities=CapabilitiesConfig(
        enabled_tools=[
            types.BuiltinTools.READ_URL_CONTENT,
            # Note: For massive web pages or lengthy documentation,
            # read_url_content caches the downloaded payload to disk.
            # Enabling VIEW_FILE allows the agent to inspect those files.
            types.BuiltinTools.VIEW_FILE,
        ]
    ),
)

async with Agent(config) as agent:
    target_url = "https://en.wikipedia.org/wiki/Google"
    prompt = f"Please read the full page content from {target_url} and tell me the exact date that Google acquired DeepMind Technologies."
    response = await agent.chat(prompt)
    print(await response.text())

[!TIP] read_url_content scrapes static HTML pages into structured markdown chunks, allowing the model to analyze long web articles or documentation without manual copying. For large pages that exceed inline context thresholds, the payload is cached to disk; pairing READ_URL_CONTENT with VIEW_FILE ensures the agent can read those cached files.

Source: SKILL.md on GitHub

No alerts6d3 checks · Risk SAFE
  • Gen Agent Trust Hub6d

    The skill provides comprehensive documentation and code examples for the Google Antigravity SDK. It describes tools for shell execution, web search, and subagent orchestration, which are intended features of the SDK. The documentation emphasizes security best practices, including safe credential management, safety policy configuration, and the use of sandboxing for shell commands.

  • Socket6d

    No alerts

  • Snyk6d

    Risk: LOW · No issues

Signed by skilld at 2eb7fee. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 2 weeks ago

README badge

README badge for google-antigravity/antigravity-sdk-python