gemini-agents-api
Skill by google
Manages custom Agent resources on the Gemini Enterprise Agent Platform through its REST control plane. It covers creating, reading, listing, updating and deleting stateful agents that have mounted files, skills and tools. Built for developers who provision agents before running conversations.
Install gemini-agents-api
Built from the published package, never by AI.
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/gemini-agents-api ~/.claude/skills/gemini-agents-apiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/cloud/gemini-agents-api ~/.gemini/antigravity-cli/skills/gemini-agents-apiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives step-by-step REST instructions for managing custom Agent resources on the Gemini Enterprise Agent Platform. It covers the Control Plane: creating an agent, polling the long-running creation operation, and getting, listing, patching and deleting agents. Each request uses a Bearer token from Application Default Credentials and targets the global endpoint on aiplatform.googleapis.com.
Agents can be configured with a system instruction, tools such as code execution and Google Search, and a remote environment. Files, folders or skills can be mounted from Google Cloud Storage or the Skill Registry, and MCP servers can be added as tools with custom headers. The skill is aimed at developers who want to provision and manage agents before running conversations through the Data Plane.
Written from the project's SKILL.md and checked against it.
What it can do
- Create agentCreates a custom agent with a system instruction, tools and a base environment via a POST request.
- Poll creation statusChecks the long-running operation and returns the finished Agent resource when it is ready.
- Get agentRetrieves the configuration, tools and environment setup of an existing custom agent.
- List agentsLists all custom agents under a Google Cloud project.
- Update agentPatches fields such as instructions, descriptions, tools or mounts using an update_mask.
- Delete agentDeletes a custom agent that is no longer needed to free up backend workspace containers.
- Mount Cloud Storage sourcesMounts files, folders or skills from Google Cloud Storage buckets into the agent workspace.
- Mount Skill Registry skillsMounts skills directly from the Skill Registry service instead of Cloud Storage.
- Configure MCP serversAdds third-party Model Context Protocol servers as agent tools with optional custom headers.
What you need
- A Google Cloud project ID
- Access to the Gemini Enterprise Agent Platform Managed Agents API
- gcloud CLI for Application Default Credentials and access tokens
- A Cloud Storage bucket or Skill Registry skill if you mount sources
Try asking
- Create a custom Gemini agent with code execution and Google Search tools
- List all custom agents in my Google Cloud project
- Update the system instruction of my support agent to a new policy
Good to know
- Updates must include an update_mask that names the fields being changed
- Agent creation is asynchronous, so the operation must be polled until done is true
- Covers the control plane only; conversations use the separate Data Plane
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cloud/gemini-agents-api/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md13 KB -
references/attribution.md2 KB
Alternatives to gemini-agents-api
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
gemini-agents-api: common questions
What does the gemini-agents-api skill manage?
It manages custom Agent resources on the Gemini Enterprise Agent Platform, including create, get, list, update and delete operations. Agents can include mounted files, skills and tools.
Why does creating an agent return an operation instead of the agent?
Agent creation is a long-running operation. The response returns an operation name that you poll until done is true, and then the Agent resource appears in the response field.
Can this skill connect MCP servers to an agent?
Yes. MCP servers can be added under the tools array with a name, url and optional headers. The source says headers are only sent to the specified MCP server URL.
How do I install gemini-agents-api?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gemini-agents-api free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is gemini-agents-api safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gemini-agents-api?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
