Loading...
Loading...
Handles NoSQL document operations and collection hierarchy exploration. Use for CRUD tasks and data retrieval. Provides flexible document manipulation and structured querying.
npx skill4agent add cline/skills firestore-data<param_name><param_value>node <skill_dir>/scripts/<script_name>.js '{"<param_name>": "<param_value>"}'node <skill_dir>/scripts/<script_name>.js '{\"<param_name>\": \"<param_value>\"}'| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| collectionPath | string | The relative path of the collection where the document will be added to (e.g., 'users' or 'users/userId/posts'). Note: This is a relative path, NOT an absolute path like 'projects/{project_id}/databases/{database_id}/documents/...' | Yes | |
| documentData | object | The document data in Firestore's native JSON format. Each field must be wrapped with a type indicator: |
false| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| documentPaths | array | Array of relative document paths to delete from Firestore (e.g., 'users/userId' or 'users/userId/posts/postId'). Note: These are relative paths, NOT absolute paths like 'projects/{project_id}/databases/{database_id}/documents/...' | Yes |
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| documentPaths | array | Array of relative document paths to retrieve from Firestore (e.g., 'users/userId' or 'users/userId/posts/postId'). Note: These are relative paths, NOT absolute paths like 'projects/{project_id}/databases/{database_id}/documents/...' | Yes |
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| parentPath | string | Relative parent document path to list subcollections from (e.g., 'users/userId'). If not provided, lists root collections. Note: This is a relative path, NOT an absolute path like 'projects/{project_id}/databases/{database_id}/documents/...' | No |
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| collectionPath | string | The relative path to the Firestore collection to query (e.g., 'users' or 'users/userId/posts'). Note: This is a relative path, NOT an absolute path like 'projects/{project_id}/databases/{database_id}/documents/...' | Yes | |
| filters | array | Array of filter objects to apply to the query. Each filter is a JSON string with: |
100false| Name | Type | Description | Required | Default |
|---|---|---|---|---|
| documentPath | string | The relative path of the document which needs to be updated (e.g., 'users/userId' or 'users/userId/posts/postId'). Note: This is a relative path, NOT an absolute path like 'projects/{project_id}/databases/{database_id}/documents/...' | Yes | |
| documentData | object | The document data in Firestore's native JSON format. Each field must be wrapped with a type indicator: |
false