Skip to content
Back to skills

2507 Fetch 15bd8b2e

ASecurity

Fetch and filter objects from Weaviate collections

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 11, 2026
toolsgobashapi

Works with

  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2507-fetch_15bd8b2e --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2507 Fetch 15bd8b2e?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2507 Fetch 15bd8b2e
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2507-fetch-15bd8b2e/badge)](https://www.skillsdirectory.com/skills/tools-only-2507-fetch-15bd8b2e)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.