[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7884EP6DEAV6XVHTKC2V2YP":3,"skill-same:01M7884EP6DEAV6XVHTKC2V2YP":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7884EP6DEAV6XVHTKC2V2YP","gemini-agents-api",null,"Manages custom Agent resources on Gemini Enterprise Agent Platform. Use when the user wants to programmatically create, configure, list, update, or delete stateful, server-managed Agent resources (including mounting files, skills, and tools) before executing conversations.","Solizardking\u002Fskillhub-main","Solizardking","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108096810?v=4","01M786KDB10AYV042N0F9BD5B5","Clawd","01M786NYYXSZK1D05WM8JQPC48",0,"MIT","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fgoogle\u002Fcloud\u002Fgemini-agents-api\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: gemini-agents-api\nmetadata:\n  category: AiAndMachineLearning\ndescription: Manages custom Agent resources on Gemini Enterprise Agent Platform. Use when the user wants to programmatically create, configure, list, update, or delete stateful, server-managed Agent resources (including mounting files, skills, and tools) before executing conversations.\n---\n\n# Gemini Enterprise Agent Platform - Managed Agents API Skill\n\nThis skill provides complete instructions, REST request endpoints, and JSON payload structures to programmatically manage **custom Agent resources** on the Gemini Enterprise Agent Platform (Agent Platform).\n\nThe **Managed Agents API** forms the **Control Plane** of the platform. It allows developers to provision, retrieve, update, and delete tailored, stateful agent containers equipped with system instructions, sandboxed files, custom skill registries, and local\u002Fremote tools.\n---\n\n## 1. Authentication & Setup\n\nAll REST requests to the Control Plane must include a Bearer token derived from Application Default Credentials (ADC), and target the production global endpoint.\n\n### 1. Setup Environment Variables\n\nBefore running requests, set up the required project variables and access token:\n\n```bash\nexport PROJECT_ID=\"your-project-id\"\nexport LOCATION=\"global\"\nexport ACCESS_TOKEN=$(gcloud auth print-access-token)\n```\n\n> [!IMPORTANT]\n> **API Location Support**:\n> The `LOCATION` environment variable must be set to a regional location where the Gemini Enterprise Agent Platform's **Managed Agents API** is actively supported (e.g., `global`, or other available regional endpoints).\n\n\n### 2. Endpoint URL\n\nThe production Agents Control Plane endpoint is:\n\n```http\nhttps:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F{PROJECT_ID}\u002Flocations\u002F{LOCATION}\u002Fagents\n```\n\n---\n\n## 2. Programmatic Agent Management (Control Plane CRUD)\n\n### 1. Create Agent (Long-Running Operation)\n\nTo create a new agent resource, issue a `POST` request with the custom configuration. You can mount remote files, folders, or skills directly from **Google Cloud Storage** buckets into the agent container's workspace. Creating an agent is a Long-Running Operation (LRO) that spawns an asynchronous job.\n\n*   **Method**: `POST`\n*   **Endpoint**: `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION}\u002Fagents`\n\n#### Request Payload\n\n```bash\ncurl -X POST \"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION}\u002Fagents\" \\\n  -H \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson; charset=utf-8\" \\\n  -d '{\n    \"id\": \"my-custom-agent\",\n    \"base_agent\": \"antigravity-preview-05-2026\",\n    \"description\": \"A professional agent configured with remote tools and mounted Cloud Storage directories.\",\n    \"system_instruction\": \"You are a helpful, domain-expert assistant.\",\n    \"tools\": [\n      {\"type\": \"code_execution\"},\n      {\"type\": \"filesystem\"},\n      {\"type\": \"google_search\"},\n      {\"type\": \"url_context\"}\n    ],\n    \"base_environment\": {\n      \"type\": \"remote\",\n      \"sources\": [\n        {\n          \"type\": \"gcs\",\n          \"source\": \"gs:\u002F\u002Fyour-agent-bucket-name\u002Fskills\",\n          \"target\": \"\u002F.agent\u002Fskills\"\n        }\n      ],\n      \"network\": {\n        \"allowlist\": [\n          { \"domain\": \"*\" }\n        ]\n      }\n    }\n  }'\n```\n\n#### LRO Operations Response\n\nSince agent provisioning takes a few moments, the endpoint immediately returns an operation tracking object:\n\n```json\n{\n  \"name\": \"projects\u002F1234567890\u002Flocations\u002Fglobal\u002Foperations\u002Foperation-987654321-abcde\",\n  \"metadata\": {\n    \"@type\": \"type.googleapis.com\u002Fgoogle.cloud.aiplatform.v1beta1.CreateAgentOperationMetadata\",\n    \"genericMetadata\": {\n      \"createTime\": \"2026-05-14T19:00:00.123456Z\",\n      \"updateTime\": \"2026-05-14T19:00:01.654321Z\"\n    }\n  }\n}\n```\n\n#### [Advanced] Mount Skill Registry Resources\n\nTo mount skills directly from the Skill Registry service instead of Cloud Storage, replace the Cloud Storage source item in the payload:\n\n```json\n\"sources\": [\n  {\n    \"type\": \"skill_registry\",\n    \"source\": \"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fskills\u002Fmy-math-skill\u002Frevisions\u002F123456789012\",\n    \"target\": \"\u002F.agent\u002Fskills\"\n  }\n]\n```\n\n#### [Advanced] Configuring Model Context Protocol (MCP) Servers\n\nTo configure Third-Party MCP servers for an agent, add the server metadata directly under the `\"tools\"` parameter array inside the creation request. The platform securely routes tool execution requests to the external MCP server.\n\n> [!IMPORTANT]\n> **MCP Security Explanation**: When describing MCP tool configurations, you must explain that the platform securely routes tool requests to the specified MCP server and guarantees header confidentiality by only sending custom headers\u002Ftokens to that URL.\n\n```json\n\"tools\": [\n  {\n    \"type\": \"mcp\",\n    \"name\": \"my-mcp-server\",\n    \"url\": \"https:\u002F\u002Fmcp.yourcompany.com\u002Fapi\",\n    \"headers\": {\n      \"Authorization\": \"Bearer YOUR_MCP_AUTH_TOKEN\"\n    }\n  }\n]\n```\n\n*   **name**: A descriptive name for the MCP server.\n*   **url**: The endpoint URL of the external MCP server.\n*   **headers**: (Optional) Custom key-value pairs containing authentication tokens (e.g. API keys, bearer tokens) required to call the server. The platform guarantees that these headers are only sent to the specified MCP server URL.\n\n> [!TIP]\n> **Overriding MCP at Interaction Time (Data Plane)**:\n> You can dynamically override or supply MCP tools directly when creating a conversation interaction (Data Plane) by passing `\"type\": \"mcp_server\"` inside the `\"tools\"` payload of `interactions.create`. Refer to the Interactions API documentation for details.\n\n---\n\n### 2. Polling the LRO Status\n\nTo track the status of agent creation and obtain the final ready resource, poll the operation URL returned in the `name` field of the creation response.\n\n*   **Method**: `GET`\n*   **Endpoint**: `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002F{OPERATION_NAME}`\n\n```bash\ncurl -X GET \"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F1234567890\u002Flocations\u002Fglobal\u002Foperations\u002Foperation-987654321-abcde\" \\\n  -H \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\"\n```\n\n#### In-Progress Response\n\n```json\n{\n  \"name\": \"projects\u002F1234567890\u002Flocations\u002Fglobal\u002Foperations\u002Foperation-987654321-abcde\",\n  \"metadata\": { ... }\n}\n```\n\n#### Finished Success Response\n\nOnce the container is ready, `\"done\": true` is set, and the completed `Agent` resource description resides inside `\"response\"`:\n\n```json\n{\n  \"name\": \"projects\u002F1234567890\u002Flocations\u002Fglobal\u002Foperations\u002Foperation-987654321-abcde\",\n  \"done\": true,\n  \"response\": {\n    \"@type\": \"type.googleapis.com\u002Fgoogle.cloud.aiplatform.v1beta1.Agent\",\n    \"name\": \"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\",\n    \"base_agent\": \"antigravity-preview-05-2026\",\n    \"description\": \"A professional agent configured with remote tools and mounted Cloud Storage directories.\",\n    \"system_instruction\": \"You are a helpful, domain-expert assistant.\"\n  }\n}\n```\n\n---\n\n### 3. Get Agent\n\nRetrieve the configuration metadata, tools, and environment setup of an existing custom agent.\n\n*   **Method**: `GET`\n*   **Endpoint**: `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION}\u002Fagents\u002F{AGENT_ID}`\n\n```bash\ncurl -X GET \"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\" \\\n  -H \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\"\n```\n\n#### Response Example\nReturns the complete configured state of the custom Agent resource:\n\n```json\n{\n  \"name\": \"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\",\n  \"base_agent\": \"antigravity-preview-05-2026\",\n  \"description\": \"A professional agent configured with remote tools and mounted Cloud Storage directories.\",\n  \"system_instruction\": \"You are a helpful, domain-expert assistant.\",\n  \"tools\": [\n    {\"type\": \"code_execution\"},\n    {\"type\": \"filesystem\"},\n    {\"type\": \"google_search\"},\n    {\"type\": \"url_context\"}\n  ],\n  \"base_environment\": {\n    \"type\": \"remote\",\n    \"sources\": [\n      {\n        \"type\": \"gcs\",\n        \"source\": \"gs:\u002F\u002Fyour-agent-bucket-name\u002Fskills\",\n        \"target\": \"\u002F.agent\u002Fskills\"\n      }\n    ],\n    \"network\": {\n      \"allowlist\": [\n        { \"domain\": \"*\" }\n      ]\n    }\n  }\n}\n```\n\n---\n\n### 4. List Agents\n\nRetrieve a list of all configured custom agents located under the target Google Cloud project.\n\n*   **Method**: `GET`\n*   **Endpoint**: `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION}\u002Fagents`\n\n```bash\ncurl -X GET \"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002Fglobal\u002Fagents\" \\\n  -H \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\"\n```\n\n#### Response Example\nReturns a JSON list of all configured custom Agents under the target project:\n\n```json\n{\n  \"agents\": [\n    {\n      \"name\": \"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\",\n      \"base_agent\": \"antigravity-preview-05-2026\",\n      \"description\": \"A professional agent configured with remote tools and mounted Cloud Storage directories.\",\n      \"system_instruction\": \"You are a helpful, domain-expert assistant.\"\n    },\n    {\n      \"name\": \"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-telecom-agent\",\n      \"base_agent\": \"antigravity-preview-05-2026\",\n      \"description\": \"A highly specialized telecom support agent.\",\n      \"system_instruction\": \"You are a professional telecom support agent. Follow system policies carefully.\"\n    }\n  ]\n}\n```\n\n---\n\n### 5. Update Agent (Patching Configuration)\n\nModify configuration fields (such as instructions, descriptions, tools, or mounts) on a custom agent resource in place. You **must** specify the fields being updated using the `update_mask` query parameter.\n\n> [!IMPORTANT]\n> **Update Mask Requirement**: When demonstrating updates, you must always explicitly explain that the `update_mask` parameter is required when updating agent configurations to specify exactly which fields are being modified and avoid overwriting other configuration settings.\n\n*   **Method**: `PATCH`\n*   **Endpoint**: `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION}\u002Fagents\u002F{AGENT_ID}?update_mask=system_instruction`\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent?update_mask=system_instruction\" \\\n  -H \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"my-custom-agent\",\n    \"system_instruction\": \"You are a highly specialized telecom support agent. Follow system policies carefully.\"\n  }'\n```\n\n---\n\n### 6. Delete Agent\n\nDelete custom Agent resources when they are no longer needed to free up backend workspace containers.\n\n*   **Method**: `DELETE`\n*   **Endpoint**: `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION}\u002Fagents\u002F{AGENT_ID}`\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\" \\\n  -H \"Authorization: Bearer ${ACCESS_TOKEN}\"\n```\n\n#### Response Example\nA successful deletion request returns an empty JSON response body with HTTP Status `200 OK`:\n\n```json\n{}\n```\n\n---\n\n## 3. Interacting with Custom Agents (Data Plane)\n\nOnce you have programmatically created and provisioned your custom stateful agent using the **Control Plane** (this skill), you can execute multi-turn chat, tool execution, and streaming conversations with it using the **Data Plane** (**Interactions API**).\n\n> [!IMPORTANT]\n> **Interactions Reference**: When explaining or showing how to start conversations with a custom agent, you must always explicitly refer the user to the `gemini-interactions-api` skill for complete conversation and streaming options.\n\nTo interact with your custom agent:\n\n1.  Obtain your agent's resource path name (e.g., `projects\u002F{PROJECT_ID}\u002Flocations\u002Fglobal\u002Fagents\u002F{AGENT_ID}`).\n2.  Pass this resource path directly inside your data plane conversation requests under the **`agent`** parameter.\n\n#### Python Example\n\n```python\ninteraction = client.interactions.create(\n    agent=\"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\",\n    input=\"Hello! Who are you?\"\n)\n```\n\n#### REST \u002F curl Example\n\n```json\n{\n  \"agent\": \"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\",\n  \"input\": [{\n    \"role\": \"user\",\n    \"content\": [{\"type\": \"text\", \"text\": \"Hello! Who are you?\"}]\n  }]\n}\n```\n\nRefer to the **`gemini-interactions-api`** skill guide (`..\u002Fgemini-interactions-api\u002FSKILL.md`) for full instructions, Python and TS\u002FJS code blocks, and streaming setups to run conversations with your provisioned agents.\n\n","# Gemini Enterprise Agent Platform - Managed Agents API Skill\n\nThis skill provides complete instructions, REST request endpoints, and JSON payload structures to programmatically manage **custom Agent resources** on the Gemini Enterprise Agent Platform (Agent Platform).\n\nThe **Managed Agents API** forms the **Control Plane** of the platform. It allows developers to provision, retrieve, update, and delete tailored, stateful agent containers equipped with system instructions, sandboxed files, custom skill registries, and local\u002Fremote tools.\n---\n\n## 1. Authentication & Setup\n\nAll REST requests to the Control Plane must include a Bearer token derived from Application Default Credentials (ADC), and target the production global endpoint.\n\n### 1. Setup Environment Variables\n\nBefore running requests, set up the required project variables and access token:\n\n```bash\nexport PROJECT_ID=\"your-project-id\"\nexport LOCATION=\"global\"\nexport ACCESS_TOKEN=$(gcloud auth print-access-token)\n```\n\n> [!IMPORTANT]\n> **API Location Support**:\n> The `LOCATION` environment variable must be set to a regional location where the Gemini Enterprise Agent Platform's **Managed Agents API** is actively supported (e.g., `global`, or other available regional endpoints).\n\n\n### 2. Endpoint URL\n\nThe production Agents Control Plane endpoint is:\n\n```http\nhttps:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F{PROJECT_ID}\u002Flocations\u002F{LOCATION}\u002Fagents\n```\n\n---\n\n## 2. Programmatic Agent Management (Control Plane CRUD)\n\n### 1. Create Agent (Long-Running Operation)\n\nTo create a new agent resource, issue a `POST` request with the custom configuration. You can mount remote files, folders, or skills directly from **Google Cloud Storage** buckets into the agent container's workspace. Creating an agent is a Long-Running Operation (LRO) that spawns an asynchronous job.\n\n*   **Method**: `POST`\n*   **Endpoint**: `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION}\u002Fagents`\n\n#### Request Payload\n\n```bash\ncurl -X POST \"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION}\u002Fagents\" \\\n  -H \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson; charset=utf-8\" \\\n  -d '{\n    \"id\": \"my-custom-agent\",\n    \"base_agent\": \"antigravity-preview-05-2026\",\n    \"description\": \"A professional agent configured with remote tools and mounted Cloud Storage directories.\",\n    \"system_instruction\": \"You are a helpful, domain-expert assistant.\",\n    \"tools\": [\n      {\"type\": \"code_execution\"},\n      {\"type\": \"filesystem\"},\n      {\"type\": \"google_search\"},\n      {\"type\": \"url_context\"}\n    ],\n    \"base_environment\": {\n      \"type\": \"remote\",\n      \"sources\": [\n        {\n          \"type\": \"gcs\",\n          \"source\": \"gs:\u002F\u002Fyour-agent-bucket-name\u002Fskills\",\n          \"target\": \"\u002F.agent\u002Fskills\"\n        }\n      ],\n      \"network\": {\n        \"allowlist\": [\n          { \"domain\": \"*\" }\n        ]\n      }\n    }\n  }'\n```\n\n#### LRO Operations Response\n\nSince agent provisioning takes a few moments, the endpoint immediately returns an operation tracking object:\n\n```json\n{\n  \"name\": \"projects\u002F1234567890\u002Flocations\u002Fglobal\u002Foperations\u002Foperation-987654321-abcde\",\n  \"metadata\": {\n    \"@type\": \"type.googleapis.com\u002Fgoogle.cloud.aiplatform.v1beta1.CreateAgentOperationMetadata\",\n    \"genericMetadata\": {\n      \"createTime\": \"2026-05-14T19:00:00.123456Z\",\n      \"updateTime\": \"2026-05-14T19:00:01.654321Z\"\n    }\n  }\n}\n```\n\n#### [Advanced] Mount Skill Registry Resources\n\nTo mount skills directly from the Skill Registry service instead of Cloud Storage, replace the Cloud Storage source item in the payload:\n\n```json\n\"sources\": [\n  {\n    \"type\": \"skill_registry\",\n    \"source\": \"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fskills\u002Fmy-math-skill\u002Frevisions\u002F123456789012\",\n    \"target\": \"\u002F.agent\u002Fskills\"\n  }\n]\n```\n\n#### [Advanced] Configuring Model Context Protocol (MCP) Servers\n\nTo configure Third-Party MCP servers for an agent, add the server metadata directly under the `\"tools\"` parameter array inside the creation request. The platform securely routes tool execution requests to the external MCP server.\n\n> [!IMPORTANT]\n> **MCP Security Explanation**: When describing MCP tool configurations, you must explain that the platform securely routes tool requests to the specified MCP server and guarantees header confidentiality by only sending custom headers\u002Ftokens to that URL.\n\n```json\n\"tools\": [\n  {\n    \"type\": \"mcp\",\n    \"name\": \"my-mcp-server\",\n    \"url\": \"https:\u002F\u002Fmcp.yourcompany.com\u002Fapi\",\n    \"headers\": {\n      \"Authorization\": \"Bearer YOUR_MCP_AUTH_TOKEN\"\n    }\n  }\n]\n```\n\n*   **name**: A descriptive name for the MCP server.\n*   **url**: The endpoint URL of the external MCP server.\n*   **headers**: (Optional) Custom key-value pairs containing authentication tokens (e.g. API keys, bearer tokens) required to call the server. The platform guarantees that these headers are only sent to the specified MCP server URL.\n\n> [!TIP]\n> **Overriding MCP at Interaction Time (Data Plane)**:\n> You can dynamically override or supply MCP tools directly when creating a conversation interaction (Data Plane) by passing `\"type\": \"mcp_server\"` inside the `\"tools\"` payload of `interactions.create`. Refer to the Interactions API documentation for details.\n\n---\n\n### 2. Polling the LRO Status\n\nTo track the status of agent creation and obtain the final ready resource, poll the operation URL returned in the `name` field of the creation response.\n\n*   **Method**: `GET`\n*   **Endpoint**: `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002F{OPERATION_NAME}`\n\n```bash\ncurl -X GET \"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F1234567890\u002Flocations\u002Fglobal\u002Foperations\u002Foperation-987654321-abcde\" \\\n  -H \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\"\n```\n\n#### In-Progress Response\n\n```json\n{\n  \"name\": \"projects\u002F1234567890\u002Flocations\u002Fglobal\u002Foperations\u002Foperation-987654321-abcde\",\n  \"metadata\": { ... }\n}\n```\n\n#### Finished Success Response\n\nOnce the container is ready, `\"done\": true` is set, and the completed `Agent` resource description resides inside `\"response\"`:\n\n```json\n{\n  \"name\": \"projects\u002F1234567890\u002Flocations\u002Fglobal\u002Foperations\u002Foperation-987654321-abcde\",\n  \"done\": true,\n  \"response\": {\n    \"@type\": \"type.googleapis.com\u002Fgoogle.cloud.aiplatform.v1beta1.Agent\",\n    \"name\": \"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\",\n    \"base_agent\": \"antigravity-preview-05-2026\",\n    \"description\": \"A professional agent configured with remote tools and mounted Cloud Storage directories.\",\n    \"system_instruction\": \"You are a helpful, domain-expert assistant.\"\n  }\n}\n```\n\n---\n\n### 3. Get Agent\n\nRetrieve the configuration metadata, tools, and environment setup of an existing custom agent.\n\n*   **Method**: `GET`\n*   **Endpoint**: `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION}\u002Fagents\u002F{AGENT_ID}`\n\n```bash\ncurl -X GET \"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\" \\\n  -H \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\"\n```\n\n#### Response Example\nReturns the complete configured state of the custom Agent resource:\n\n```json\n{\n  \"name\": \"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\",\n  \"base_agent\": \"antigravity-preview-05-2026\",\n  \"description\": \"A professional agent configured with remote tools and mounted Cloud Storage directories.\",\n  \"system_instruction\": \"You are a helpful, domain-expert assistant.\",\n  \"tools\": [\n    {\"type\": \"code_execution\"},\n    {\"type\": \"filesystem\"},\n    {\"type\": \"google_search\"},\n    {\"type\": \"url_context\"}\n  ],\n  \"base_environment\": {\n    \"type\": \"remote\",\n    \"sources\": [\n      {\n        \"type\": \"gcs\",\n        \"source\": \"gs:\u002F\u002Fyour-agent-bucket-name\u002Fskills\",\n        \"target\": \"\u002F.agent\u002Fskills\"\n      }\n    ],\n    \"network\": {\n      \"allowlist\": [\n        { \"domain\": \"*\" }\n      ]\n    }\n  }\n}\n```\n\n---\n\n### 4. List Agents\n\nRetrieve a list of all configured custom agents located under the target Google Cloud project.\n\n*   **Method**: `GET`\n*   **Endpoint**: `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION}\u002Fagents`\n\n```bash\ncurl -X GET \"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002Fglobal\u002Fagents\" \\\n  -H \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\"\n```\n\n#### Response Example\nReturns a JSON list of all configured custom Agents under the target project:\n\n```json\n{\n  \"agents\": [\n    {\n      \"name\": \"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\",\n      \"base_agent\": \"antigravity-preview-05-2026\",\n      \"description\": \"A professional agent configured with remote tools and mounted Cloud Storage directories.\",\n      \"system_instruction\": \"You are a helpful, domain-expert assistant.\"\n    },\n    {\n      \"name\": \"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-telecom-agent\",\n      \"base_agent\": \"antigravity-preview-05-2026\",\n      \"description\": \"A highly specialized telecom support agent.\",\n      \"system_instruction\": \"You are a professional telecom support agent. Follow system policies carefully.\"\n    }\n  ]\n}\n```\n\n---\n\n### 5. Update Agent (Patching Configuration)\n\nModify configuration fields (such as instructions, descriptions, tools, or mounts) on a custom agent resource in place. You **must** specify the fields being updated using the `update_mask` query parameter.\n\n> [!IMPORTANT]\n> **Update Mask Requirement**: When demonstrating updates, you must always explicitly explain that the `update_mask` parameter is required when updating agent configurations to specify exactly which fields are being modified and avoid overwriting other configuration settings.\n\n*   **Method**: `PATCH`\n*   **Endpoint**: `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION}\u002Fagents\u002F{AGENT_ID}?update_mask=system_instruction`\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent?update_mask=system_instruction\" \\\n  -H \"Authorization: Bearer ${ACCESS_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"my-custom-agent\",\n    \"system_instruction\": \"You are a highly specialized telecom support agent. Follow system policies carefully.\"\n  }'\n```\n\n---\n\n### 6. Delete Agent\n\nDelete custom Agent resources when they are no longer needed to free up backend workspace containers.\n\n*   **Method**: `DELETE`\n*   **Endpoint**: `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION}\u002Fagents\u002F{AGENT_ID}`\n\n```bash\ncurl -X DELETE \"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\" \\\n  -H \"Authorization: Bearer ${ACCESS_TOKEN}\"\n```\n\n#### Response Example\nA successful deletion request returns an empty JSON response body with HTTP Status `200 OK`:\n\n```json\n{}\n```\n\n---\n\n## 3. Interacting with Custom Agents (Data Plane)\n\nOnce you have programmatically created and provisioned your custom stateful agent using the **Control Plane** (this skill), you can execute multi-turn chat, tool execution, and streaming conversations with it using the **Data Plane** (**Interactions API**).\n\n> [!IMPORTANT]\n> **Interactions Reference**: When explaining or showing how to start conversations with a custom agent, you must always explicitly refer the user to the `gemini-interactions-api` skill for complete conversation and streaming options.\n\nTo interact with your custom agent:\n\n1.  Obtain your agent's resource path name (e.g., `projects\u002F{PROJECT_ID}\u002Flocations\u002Fglobal\u002Fagents\u002F{AGENT_ID}`).\n2.  Pass this resource path directly inside your data plane conversation requests under the **`agent`** parameter.\n\n#### Python Example\n\n```python\ninteraction = client.interactions.create(\n    agent=\"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\",\n    input=\"Hello! Who are you?\"\n)\n```\n\n#### REST \u002F curl Example\n\n```json\n{\n  \"agent\": \"projects\u002Fyour-project-id\u002Flocations\u002Fglobal\u002Fagents\u002Fmy-custom-agent\",\n  \"input\": [{\n    \"role\": \"user\",\n    \"content\": [{\"type\": \"text\", \"text\": \"Hello! Who are you?\"}]\n  }]\n}\n```\n\nRefer to the **`gemini-interactions-api`** skill guide (`..\u002Fgemini-interactions-api\u002FSKILL.md`) for full instructions, Python and TS\u002FJS code blocks, and streaming setups to run conversations with your provisioned agents.\n\n",{"name":5,"metadata":24,"description":7},{"category":25},"AiAndMachineLearning","main","be3de0244dc1a57e323d8160787ebb40fb64930e","public\u002Fapi\u002Fskills\u002Fgoogle\u002Fcloud\u002Fgemini-agents-api","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main","https:\u002F\u002Fskills.x402.wtf","https:\u002F\u002Fgithub.com\u002FSolizardking","https:\u002F\u002Fmusebook.trade","Got a mile high and never came down","2026-10-08 23:20:13",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Solizardking\u002Fskillhub-main --skill gemini-agents-api",{"tool":41,"command":42},"bunx","bunx skills add Solizardking\u002Fskillhub-main --skill gemini-agents-api",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Solizardking\u002Fskillhub-main --skill gemini-agents-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fgoogle\u002Fcloud\u002Fgemini-agents-api\u002FSKILL.md",true,[49,55],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"metadata.json","REFERENCE","参考文档",470,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fgoogle\u002Fcloud\u002Fgemini-agents-api\u002Fmetadata.json",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"verification.json",1169,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fgoogle\u002Fcloud\u002Fgemini-agents-api\u002Fverification.json",[60,67,74,81,88,96],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M78E0TGCAMNPS207BA3G07S7","zkrouter","Self-hosted OpenAI-compatible LLM router — smart tier-based routing, ZK-stamped routing decisions, mode overrides, free OpenRouter at install via the Birth bot. Save 60-80% on inference costs by routing to the cheapest capable model across 12+ OpenRouter models.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzkrouter\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M78E0R1Z8BDT6EDTHY17MTNB","zk","For custom ZK Solana programs and privacy-preserving applications to prevent double spending. Guide to integrate rent-free nullifier PDAs for double-spend prevention.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzk\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M78E0P3ZTZ1YWF8MD5MM23QE","zk-omni-messaging","Zero-knowledge omnichain messaging between Robinhood Chain and Solana using CheshireZkOmniMessenger (msgType 4) with nullifier anti-replay and the zk-omni-relayer service.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzk-omni-messaging\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M78E0JXZ2PNB1896VXAGDBWD","zerion-wallet-data","Use when the user asks to check a wallet's portfolio, token balances, DeFi positions, PnL, transaction history, or NFTs. Provides interpreted on-chain data across 40+ EVM chains and Solana via x402 pay-per-request or API key — no raw RPC decoding needed.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzerion-wallet-data\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M78E0G14FH9GRRTQYMKD5E59","youtube-clipper","YouTube 视频智能剪辑工具。下载视频和字幕，AI 分析生成精细章节（几分钟级别）， 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频，并生成总结文案。 使用场景：当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词：视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M78E0C2ZYA99CFFDNB7ZMK5S","yield-optimization","Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+ yield opportunities across 75+ blockchains, build deposit\u002Fwithdrawal transactions with shell scripts, and sign them with a MoonPay wallet. Use when the user wants to earn yield, find the best lending or staking rate, enter\u002Fexit a position, or check portfolio balances.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyield-optimization\u002FSKILL.md",[],[]]