Một số công cụ có các phần phụ thuộc mà bạn phải cài đặt hoặc bật trước khi sử dụng. Sau đây là một số ví dụ về các phần phụ thuộc có thể cần thiết:
Bạn có thể cần cài đặt một tiện ích trong IDE.
Bạn có thể cần tạo tài khoản hoặc dự án cho một dịch vụ.
Bạn sẽ được nhắc thực hiện các hành động bắt buộc trong lần đầu tiên bạn yêu cầu một công cụ trong cuộc trò chuyện trên Gemini Code Assist.
Định cấu hình một công cụ để sử dụng trong IDE
Trong IDE, hãy chuyển đến cuộc trò chuyện Trợ giúp mã Gemini và nhắc công cụ bạn muốn sử dụng bằng cách sử dụng biểu tượng @, theo sau là tên của công cụ.
Ví dụ: lời nhắc sau đây được gửi đến công cụ Google Tài liệu:
@GoogleDocs get my docs
Công cụ này sẽ cung cấp các bước tiếp theo cần thiết để định cấu hình công cụ và kết nối Tài khoản Google của bạn với dịch vụ công cụ.
Làm theo hướng dẫn được cung cấp để xác thực với dịch vụ công cụ và kết nối các tài khoản của bạn.
Sau khi bạn xác thực và kết nối thành công tài khoản của mình, hãy gửi một lời nhắc khác đến công cụ.
Một số công cụ sẽ đề xuất các câu lệnh phổ biến sau khi bạn nhập tên công cụ.
Để biết danh sách các công cụ và một số câu lệnh gợi ý, hãy xem phần các công cụ có sẵn.
Xoá quyền uỷ quyền khỏi một công cụ
Để xoá quyền uỷ quyền khỏi một công cụ trong IDE, hãy hoàn tất các bước sau:
Chuyển đến trang Agents & Tools (Trình đại diện và công cụ) của tính năng Gemini Code Assist.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 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\n[Set up Gemini Code Assist for individuals](/gemini-code-assist/docs/set-up-gemini).\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- 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 The tool will provide the next steps required to configure the tool and\n connect your Google Account with the tool service.\n2. Follow the provided instructions to authenticate to the tool service and\n connect your accounts.\n\n3. Once you have successfully authenticated and connected your account, send\n another prompt to the tool.\n\n Some tools will suggest common prompts once you type in the tool name.\n\nFor a list of tools and some suggested prompts, see\n[available tools](/gemini-code-assist/docs/tools-agents/tools-overview#available-tools).\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 the Gemini Code Assist **Agents \\& Tools** page.\n\n [Go to Agents \\& Tools](https://codeassist.google.com/agents-tools)\n2. Locate the tool card for the tool you want to remove authorization from and\n then click **Edit**. The tool details page opens.\n\n3. Click **Disable**.\n\n The tool is no longer 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)."]]