---
id: "asgard-ext-google-firestore"
lang: "zh-TW"
name: "Firestore"
vendor: "Google"
product: "Firestore"
category: "data"
summary: "讓 Agent 用只能讀取的 Google Cloud 服務帳戶，查詢、讀取組織開放的 Firestore collection。"
url: "https://www.asgard-ai.com/zh/extensions/asgard-ext-google-firestore"
docs: "https://cloud.google.com/firestore/docs/reference/rest"
source: null
usages: ["shared-account"]
produces: ["Workflow","Toolset","Agent"]
requires: {"asgard_cli":">=0.2.1","skills":[],"extensions":[],"platform":[]}
command: "asgard-cli extension get asgard-ext-google-firestore"
handoff: "請用 asgard-cli 取得 asgard-ext-google-firestore 這個 Extension，帶我判斷要走哪幾條路線，再開始導入。"
updated: "2026-11-24"
---

# Firestore

讓 Asgard 的 Agent 讀 Firestore 資料庫：

- 找出一個 collection 裡符合條件的文件，例如某位客戶還沒出貨的訂單
- 計算符合條件的文件數量，不列出內容
- 用路徑讀一份文件，並看它底下有哪些子集合

Agent 只讀取。它不會建立、修改或刪除任何文件。它只讀組織開放的 collection，也看不到組織隱藏的欄位（例如電子郵件地址）。

## 要準備什麼

- 一個 Google Cloud 專案，裡面有原生模式的 Firestore 資料庫。MongoDB 相容模式或 Datastore 模式的資料庫不能用。
- 一位能在那個專案建立服務帳戶與金鑰的人。以前沒做過的話，FDE Agent 會一步一步帶著做（大約 10 分鐘）。
- 決定好 Agent 能讀哪些 collection，以及哪些欄位不能讓它看到。
