Databases
Command
/fetch
Fetch and filter objects from Weaviate collections
Install
> /plugin marketplace add weaviate/agent-skills > /plugin install weaviate@weaviate-plugins
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/fetch
Context preview
What this command does when you run it.
Fetch and filter objects from Weaviate collections
Command definition
fetch.mddescription: 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:**
uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/fetch_filter.py "COLLECTION_NAME" --id "UUID"2. **Fetch with Filters:**
uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/fetch_filter.py "COLLECTION_NAME" --filters 'JSON_STRING' --limit 10Filter Syntax
Filters must be a JSON string.
**Simple Filter:**
[{"property": "category", "operator": "equal", "value": "Science"}]**OR Logic:**
{
"operator": "or",
"filters": [
{"property": "word_count", "operator": "greater_than", "value": 1000},
{"property": "title", "operator": "like", "value": "*Research*"}
]
}**Complex Nesting:**
{
"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
Read more
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:**
uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/fetch_filter.py "COLLECTION_NAME" --id "UUID"2. **Fetch with Filters:**
uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/fetch_filter.py "COLLECTION_NAME" --filters 'JSON_STRING' --limit 10Filter Syntax
Filters must be a JSON string.
**Simple Filter:**
[{"property": "category", "operator": "equal", "value": "Science"}]**OR Logic:**
{
"operator": "or",
"filters": [
{"property": "word_count", "operator": "greater_than", "value": 1000},
{"property": "title", "operator": "like", "value": "*Research*"}
]
}**Complex Nesting:**
{
"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
Ships withweaviate
Agent Skills to help developers build and use AI agents with Weaviate more effectively.
Get the whole plugin

