Back to skills
SKILL.md
2507 Fetch 15bd8b2e
ASecurityFetch and filter objects from Weaviate collections
- 9 stars
- 0 votes
- 0 copies
- 1 view
- Added October 11, 2026
Works with
Security analysis
100/100npx -y skills add tools-only/X-Skills --skill 2507-fetch_15bd8b2e --agent claude-codeAre you the author of 2507 Fetch 15bd8b2e?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-2507-fetch-15bd8b2e)---
description: Fetch and filter objects from Weaviate collections
argument-hint: collection [name] filters [json] limit [10] id [uuid]
allowed-tools: Bash(uv:*), AskUserQuestion, Skill
---
# Fetch and Filter Objects
Fetch specific objects by ID or filter them using complex logic (AND/OR). Always use this command after exploring the collection using `/weaviate:explore` command.
## Usage
```
/weaviate:fetch collection "CollectionName" filters '{"property": "prop", "operator": "equal", "value": "val"}'
/weaviate:fetch collection "CollectionName" id "UUID"
```
## Workflow
1. **Fetch by ID:**
```bash
uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/fetch_filter.py "COLLECTION_NAME" --id "UUID"
```
2. **Fetch with Filters:**
```bash
uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/fetch_filter.py "COLLECTION_NAME" --filters 'JSON_STRING' --limit 10
```
### Filter Syntax
Filters must be a JSON string.
**Simple Filter:**
```json
[{"property": "category", "operator": "equal", "value": "Science"}]
```
**OR Logic:**
```json
{
"operator": "or",
"filters": [
{"property": "word_count", "operator": "greater_than", "value": 1000},
{"property": "title", "operator": "like", "value": "*Research*"}
]
}
```
**Complex Nesting:**
```json
{
"operator": "and",
"filters": [
{"property": "is_published", "operator": "equal", "value": true},
{
"operator": "or",
"filters": [
{"property": "author", "operator": "equal", "value": "Jane Doe"},
{"property": "views", "operator": "greater_than", "value": 5000}
]
}
]
}
```
## Operators
- `equal`, `not_equal`
- `less_than`, `less_or_equal`
- `greater_than`, `greater_or_equal`
- `like` (use `*` for wildcards)
- `contains_any`, `contains_all` (value must be a list)
- `is_none` (value must be boolean)
## Environment
Requires:
- `WEAVIATE_URL`: Weaviate Cloud cluster URL
- `WEAVIATE_API_KEY`: API key for authentication
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.