Database

# Firebase Firestore Connector

Connect to Firebase Firestore to read, write, query, and batch-write documents in collections.

$pip install "toolsconnector[firestore]"
17
Actions
Database
Category
Free
Apache 2.0

## All 17 Actions

Action | Description | Parameters | Returns
--- | --- | --- | ---
`batch_get` | Batch get multiple documents | project, collection, document_ids [database] | `list`
`batch_write` | Execute a batch write in Firestore | project, writes | `FirestoreBatchWriteResult`
`count_documents` | Count documents in a Firestore collection | project, collection [filter] | `int`
`create_collection_group_index ⚠` | Create a collection group index in Firestore | project, collection_group, fields | `dict`
`create_document` | Create a document in a Firestore collection | project, collection, fields [document_id] | `FirestoreDocument`
`delete_document ⚠` | Delete a Firestore document | project, collection, document_id | `NoneType`
`delete_index ⚠` | Delete a composite index | project, database, index_id | `NoneType`
`export_documents` | Export documents from a collection | project, collection | `list`
`get_document` | Get a Firestore document by ID | project, collection, document_id | `FirestoreDocument`
`get_document_field` | Get a single field value from a Firestore document | project, collection, document_id, field_path | `typing.Any`
`list_collections` | List collections in a Firestore project | project | `list`
`list_documents` | List documents in a Firestore collection | project, collection [limit, page_token] | `PaginatedList[FirestoreDocument]`
`list_indexes` | List indexes for a collection | project, collection | `list`
`query` | Run a structured query on a Firestore collection | project, collection [where, order_by, limit] | `list`
`run_transaction` | Run a transaction with multiple operations | project, operations | `dict`
`update_document` | Update a Firestore document | project, collection, document_id, fields | `FirestoreDocument`
`update_fields` | Update specific fields in a Firestore document | project, collection, document_id, fields [update_mask] | `FirestoreDocument`

Open Interactive Docs & Playground →

Full schema explorer, code generation, and live API testing