import

A command for loading CSV, JSON, JSONL, or PDF files into a Weaviate collection. Weaviate collections are grouped sets of stored data that can later be searched.

In plain words
What is it for?
Use it to import one or more data files into an existing collection, or load PDFs into a collection that is created automatically on the first run.
Why use it?
It removes the manual work of converting file contents and sending records into Weaviate, including renaming fields when needed.

Command

Part of the agent-skills plugin — 2 skills, 9 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/weaviate/agent-skills/import
Clone the repo
git clone --depth 1 https://github.com/weaviate/agent-skills

Or install agent-skills, the plugin that ships this one along with the rest of its 2 skills, 9 commands.

Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 948 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00017 $0.00948
Opus 5 $0.00009 $0.00474
Sonnet 5 $0.00003 $0.00190
Haiku 4.5 $0.00002 $0.00095

Measured 3d ago against content hash 9bd89e5ba02d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

import scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Ubuntu/Debian: `sudo apt-get install poppler-utils`
commands/import.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Import Data

Import one or more CSV, JSON, JSONL, or PDF files into a Weaviate collection with automatic type conversion. Multiple files of the same format can be passed in a single invocation.

Usage

/weaviate:import file "data.csv" collection "CollectionName"
/weaviate:import file "data.csv" collection "CollectionName" mapping '{"src_col": "prop"}'
/weaviate:import file "document.pdf" collection "PDFDocuments"
/weaviate:import file "a.csv extra.jsonl" collection "CollectionName" skip-fields "id"

Workflow

  1. CSV / JSON / JSONL — collection must already exist. Create one first with /weaviate:collections if needed.

    uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/import.py FILE --collection "CollectionName"
    
  2. PDF — collection is created automatically on first run (multimodal schema with ModernVBERT/colmodernvbert); subsequent runs append to it.

    uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/import.py FILE.pdf --collection "CollectionName"
    
  3. With mapping (rename columns to match property names):

    uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/import.py FILE --collection "CollectionName" \
      --mapping '{"old_col": "new_prop"}'
    
  4. Skip reserved fields (id, _additional cause failures — drop or rename them):

    uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/import.py FILE --collection "CollectionName" \
      --skip-fields "id"
    
  5. Multi-tenant collection:

    uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/import.py FILE --collection "CollectionName" \
      --tenant "tenant1"
    
  6. Multiple files — same format:

    uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/import.py a.csv b.csv c.csv \
      --collection "CollectionName"
    
  7. Multiple files — mixed formats (CSV, JSON, and JSONL can be freely combined as long as their properties match the collection schema):

    uv run ${CLAUDE_PLUGIN_ROOT}/skills/weaviate/scripts/import.py records.csv extra.jsonl patch.json \
      --collection "CollectionName"
    

    PDFs cannot be mixed with CSV/JSON/JSONL — import them in a separate run.

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 98 lines · 17 tokens per session scan B 9bd89e5ba02d

Subscribe to this mod's changes

import is a command published in the GitHub repository weaviate/agent-skills (103 stars, last pushed 2mo ago), licensed BSD-3-Clause. It adds 17 tokens to every session and 948 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.