Чтобы получить разрешения, необходимые для использования инструментов Gemini Code Assist, попросите своего администратора предоставить вам следующие роли IAM в проекте Google Cloud:
Для использования отдельных инструментов могут потребоваться дополнительные роли и разрешения Google Cloud или сторонних производителей, а также для конкретных случаев использования. Если вы столкнулись с ошибками разрешений, обратитесь к администратору, чтобы убедиться, что у вас правильные роли и разрешения.
Зависимости
Некоторые инструменты имеют зависимости, которые необходимо установить или включить перед использованием. Некоторые примеры зависимостей, которые могут потребоваться:
Возможно, в вашей IDE потребуется установить расширение.
Возможно, продукт или услугу необходимо включить в вашем проекте Google Cloud.
Для службы может потребоваться создать учетную запись или проект.
Вам будет предложено выполнить необходимые действия при первом вызове инструмента в чате Gemini Code Assist.
Настройка инструмента для использования в IDE
В вашей IDE перейдите в чат Gemini Code Assist и предложите инструмент, который вы хотите использовать, используя символ @ , за которым следует имя инструмента.
Например, в инструмент Google Docs отправляется следующий запрос:
@GoogleDocs get my docs
Вам будет предложено подключить инструмент.
Нажмите на ссылку, чтобы подключить инструмент. Откроется страница «Агенты и инструменты Gemini Code Assist».
Найдите инструмент, который хотите использовать, и нажмите «Подключить свою учетную запись» . Откроется страница сведений об инструменте.
На странице сведений об инструменте нажмите « Подключиться» , а затем следуйте инструкциям, чтобы пройти аутентификацию в сервисе инструмента и подключить свою учетную запись.
Список инструментов и некоторые предлагаемые подсказки см. в разделе Доступные инструменты .
Удаление авторизации из инструмента
Чтобы удалить авторизацию для инструмента в вашей IDE, выполните следующие действия:
Найдите соединитель учетной записи для службы инструмента, которую вы хотите удалить, а затем щелкните имя соединителя учетной записи. Откроется страница сведений о соединителе.
В строке, содержащей вашу учетную запись, нажмите more_vertДополнительные параметры .
Нажмите Удалить .
Ваша учетная запись будет удалена из соединителя учетных записей. Инструменту больше не разрешен доступ к своему сервису из вашей IDE.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-08-30 UTC."],[],[],null,["# Configure Gemini Code Assist tools\n\n| **Preview**\n|\n| This product or feature is in preview. Products and features that are\n| in preview are available \"as is\".\n\nThis document describes how to configure Gemini Code Assist tools for\nuse in your IDE.\n\nTo learn more about Gemini Code Assist tools and view all available\ntools, read the [Gemini Code Assist tools overview](/gemini-code-assist/docs/tools-agents/tools-overview).\n\nBefore you begin\n----------------\n\n1. Ask your administrator to do the following:\n\n 1. [Set up Gemini Code Assist Standard and Enterprise](/gemini-code-assist/docs/set-up-gemini-standard-enterprise).\n 2. [Enable Gemini Code Assist tools](/gemini-code-assist/docs/tools-agents/enable-tools-standard-enterprise).\n2. [Install the Gemini Code Assist plugin in your IDE](/gemini-code-assist/docs/set-up-gemini-standard-enterprise#use-ide).\n\n### Required roles\n\nTo get the permissions that you need to use Gemini Code Assist tools, ask your administrator to grant you the following IAM roles on the Google Cloud project:\n\n\u003cbr /\u003e\n\n- [Gemini Code Assist Tools User](https://cloud.google.com/iam/docs/roles-permissions/cloudaicompanion#cloudaicompanion.codeToolsUser) (`roles/cloudaicompanion.codeToolsUser`)\n\nFor more information about granting roles, see\n[Manage access to projects, folders, and organizations](https://cloud.google.com/iam/docs/granting-changing-revoking-access).\n\nYou might also be able to get the required permissions through\n[custom roles](https://cloud.google.com/iam/docs/creating-custom-roles) or\nother [predefined roles](https://cloud.google.com/iam/docs/understanding-roles).\n\nIndividual tools might require additional Google Cloud or third-party roles and\npermissions to use, or for specific use cases. If you encounter permissions\nerrors, check with your administrator to make sure you have the correct roles\nand permissions.\n\n\n### Dependencies\n\nSome tools have dependencies you must install or enable before use. Some\nexamples of dependencies that might be required are:\n\n- An extension might need to be installed in your IDE.\n- A product or service might need to be enabled in your Google Cloud project.\n- An account or project might need to be created for a service.\n\nYou will be prompted to take the required actions the first time you prompt a\ntool in the Gemini Code Assist chat.\n\nConfigure a tool for use in the IDE\n-----------------------------------\n\n1. In your IDE, navigate to the Gemini Code Assist chat and prompt\n the tool you want to use by using the `@` symbol followed by the name of\n the tool.\n\n For example, the following prompt is sent to the Google Docs tool: \n\n @GoogleDocs get my docs\n\n You are prompted to connect the tool.\n2. Click the link to connect the tool. The Gemini Code Assist\n **Agents \\& Tools** page opens.\n\n3. Locate the tool that you want to use and then click\n **Connect your account**. The tool details page opens.\n\n | **Note:** you can't connect your account if the tool hasn't been enabled by an administrator.\n4. In the tool details page, click **Connect** and then follow the instructions\n to authenticate to the tool service and connect your account.\n\nFor a list of tools and some suggested prompts, see\n[available tools](/gemini-code-assist/docs/tools-agents/tools-overview#available-tools-standard-enterprise).\n\nRemove authorization from a tool\n--------------------------------\n\nTo remove authorization from a tool in your IDE, complete the following steps:\n\n1. Navigate to Developer Connect.\n\n [Go to Developer Connect](https://console.cloud.google.com/developer-connect)\n2. Click **Account Connectors**.\n\n3. Find the account connector for the tool service you want to remove, and then\n click the name of the account connector. The connector details page opens.\n\n4. In the row containing your account, click\n more_vert**More options**.\n\n5. Click **Delete**.\n\n Your account is removed from the account connector. The tool is no longer\n authorized to access its service from your IDE.\n | **Note:** if you want to authorize the tool again with a different account, you might need to log out of the tool account and then log back in with the new account you want to authorize\n\nWhat's next\n-----------\n\n- Try out the GitHub or GitLab tool by following the instructions in [Get started with Gemini Code Assist tools](/gemini-code-assist/docs/tools-agents/get-started-with-tools-standard-enterprise)."]]