search
npx skills add https://github.com/casemark/legal-plugin --skill search
Agent 安装分布
Skill 文档
case.dev Search
Unified search across web, legal databases, case law, patents, vault contents, and the case.dev skills knowledge base.
Requires the casedev CLI. See setup skill for installation and auth.
Web Search
casedev search web "employment discrimination California" --json
casedev search web "SEC enforcement actions 2024" --limit 20 --json
Flags:
--limit/-lâ max results (default: 10)--newsâ news articles instead of general web--typeâ explicit type:searchornews--include-domainâ restrict to domain(s), repeatable--exclude-domainâ exclude domain(s), repeatable
Web Fetch
Fetch and extract content from URLs:
casedev search webfetch "https://example.com/ruling.html" --json
Flags:
--livecrawlâ force live crawl instead of cache--subpagesâ also crawl linked subpages--subpage-target Nâ max subpages (default: 5)--max-chars Nâ truncate content--timeout Nâ livecrawl timeout in seconds (default: 30)--contextâ contextual hint for extraction--no-summaryâ skip summary generation--no-highlightsâ skip highlights extraction--strictâ fail if any URL cannot be fetched--fallbackâ if fetch fails, fall back to web search
Multiple URLs: casedev search webfetch URL1 URL2 --json
Legal Search
Find legal authorities by topic:
casedev search legal "breach of fiduciary duty" --json
casedev search legal "ERISA preemption" --jurisdiction "federal" --json
Flags:
--jurisdictionâ filter by jurisdiction--limit/-lâ max results (default: 10)--deepâ uses the research endpoint with multi-query analysis--alt-queryâ additional search queries for deep mode, repeatable
Deep mode example:
casedev search legal "force majeure pandemic" --deep \
--alt-query "impossibility of performance COVID" \
--alt-query "frustration of purpose" --json
Case Search
Two modes â query-based and similarity-based:
By query
casedev search cases "wrongful termination retaliation" --json
casedev search cases "patent infringement software" --jurisdiction "federal" --json
By similarity (find cases similar to a known case)
casedev search cases --url "https://casetext.com/case/example-v-example" --json
casedev search cases --url "https://example.com/case" --after "2020-01-01" --json
Flags:
--jurisdictionâ filter by jurisdiction--limit/-lâ max results (default: 10)--urlâ source case URL for similarity search--afterâ only cases published after this date (ISO format, similarity mode)
Patent Search
casedev search patent "machine learning natural language processing" --json
Flags:
--assigneeâ filter by patent assignee--inventorâ filter by inventor name--statusâ application status filter--typeâ application type filter--filing-fromâ filing date range start--filing-toâ filing date range end--offsetâ pagination offset (default: 0)--limit/-lâ max results (default: 25)
Vault Semantic Search
Search within vault documents (also available via vaults skill):
casedev search vault "indemnification clause" --vault VAULT_ID --json
See vaults skill for full vault search documentation.
Skills Knowledge Base
Search and read from the case.dev legal skills knowledge base:
# Search skills
casedev skills search "contract review" --json
casedev search skills "deposition preparation" --json
# Read a specific skill
casedev skills read SKILL_SLUG --json
casedev skills read SKILL_SLUG --content-only
Skills search flags: --limit / -l (1-20, default: 10), --show-summary.
Skills read flags: --no-references, --content-only.
Troubleshooting
“Missing query”: Provide the search query as a positional argument or with --query "...".
“Missing vault ID” for vault search: Use --vault VAULT_ID or set focus.
Web fetch unavailable: Use --fallback to fall back to web search, or use casedev search web directly.
No legal results: Try broader terms, remove jurisdiction filter, or use --deep mode with --alt-query variations.