·
Last changedVersion:
This version passed the hardening gate. The skill content was retained without changes. Classified findings before hardening: 3. Classified findings closed: 0. Classified findings remaining: 3. Unclassified scanner findings remaining: 0. Review findings closed: 0. Review findings remaining: 19.
1
2
1
2
Expand | File | Group | Subtype | Severity | Status |
|---|---|---|---|---|---|
SKILL.md | Sensitive Data & Secret Exposure | Data exfiltration | Medium | Open | |
SKILL.md | Tool & MCP Manipulation | MCP configuration abuse | Low | Open | |
SKILL.md | Prompt Injection | Third-party content as instructions | Low | Open |
3 findings
Brave LLM Context API delivers pre-extracted, relevance-ranked web content optimized for grounding LLM responses in real-time search results. Unlike traditional web search APIs that return links and snippets, LLM Context extracts the actual page content—text chunks, tables, code blocks, and structured data—so your LLM or AI agent can reason over it directly.
| Feature | LLM Context (this) | AI Grounding (answers) |
|---|---|---|
Output | Raw extracted content for YOUR LLM | End-to-end AI answers with citations |
Interface | REST API (GET/POST) | OpenAI-compatible |
Searches | Single search per request | Multi-search (iterative research) |
Speed | Fast (<1s) | Slower |
Plan | Search | Answers |
Endpoint |
|
|
Best for | AI agents, RAG pipelines, tool calls | Chat interfaces, research mode |
Authentication: X-Subscription-Token: <API_KEY> header
Optional Headers:
Accept-Encoding: gzip — Enable gzip compression| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| string | Yes | - | Search query (1-400 chars, max 50 words) |
| string | No |
| Search country (2-letter country code or |
| string | No |
| Language preference (2+ char language code) |
| int | No |
| Max search results to consider (1-50) |
| bool | No |
| Whether to spellcheck the query before searching |
| string | No |
| Filters search results by page age. The age of a page is determined by the most relevant date reported by the content, such as its published or last modified date. Supported values: |
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| int | No |
| Max URLs in response (1-50) |
| int | No |
| Approximate max tokens in context (1024-32768) |
| int | No |
| Max snippets across all URLs (1-256) |
| int | No |
| Max tokens per individual URL (512-8192) |
| int | No |
| Max snippets per individual URL (1-100) |
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| string | No |
| Relevance threshold for including content ( |
| string | No |
| Adult content filter ( |
| bool | No |
| Local recall control ( |
| string/list | No |
| Goggle URL or inline definition for custom re-ranking |
| bool | No |
| Adds |
| Task Type | count | max_tokens | Example |
|---|---|---|---|
Simple factual | 5 | 2048 | "What year was Python created?" |
Standard queries | 20 | 8192 | "Best practices for React hooks" |
Complex research | 50 | 16384 | "Compare AI frameworks for production" |
Larger context windows provide more information but increase latency and cost (of your inference). Start with defaults and adjust.
| Mode | Behavior |
|---|---|
| Default — resolves to |
| Higher threshold — fewer but more relevant results |
| Good balance between coverage and relevance |
| Lower threshold — more results, may include less relevant content |
| No threshold filtering — return all extracted content |
The enable_local parameter controls location-aware recall:
| Value | Behavior |
|---|---|
| Auto-detect — local recall enabled when any location header is provided |
| Force local — always use local recall, even without location headers |
| Force standard — always use standard web ranking, even with location headers |
For most use cases, omit enable_local and let the API auto-detect from location headers.
| Header | Type | Description |
|---|---|---|
| float | Latitude (-90.0 to 90.0) |
| float | Longitude (-180.0 to 180.0) |
| string | City name |
| string | State/region code (ISO 3166-2) |
| string | State/region name |
| string | 2-letter country code |
| string | Postal code |
Goggles let you control which sources ground your LLM — essential for RAG quality.
| Use Case | Goggle Rules |
|---|---|
Official docs only |
|
Exclude user content |
|
Academic sources |
|
No paywalls |
|
| Method | Example |
|---|---|
Hosted |
|
Inline |
|
Syntax: Rules start with $ + comma-separated options. Actions (pick one): discard, boost[=N], downrank[=N] — N is an integer 1–10. Site filter: site=DOMAIN. Example: $site=example.com,boost=3. Separate rules with \n (%0A).
Allow list: $discard\n$site=docs.python.org\n$site=developer.mozilla.org — Block list: $discard,site=pinterest.com\n$discard,site=quora.com
Resources: Discover · Syntax · Quickstart
enable_local)| Field | Type | Description |
|---|---|---|
| object | Container for all grounding content by type |
| array | Array of URL objects with extracted content (main grounding data) |
| string | Source URL |
| string | Page title |
| array | Extracted smart chunks relevant to the query |
| object/null | Point of interest data (only with local recall) |
| string/null | Point of interest name |
| string/null | POI source URL |
| string/null | POI page title |
| array/null | POI text snippets |
| array | Map/place results (only with local recall) |
| string/null | Place name |
| string/null | Place source URL |
| string/null | Place page title |
| array/null | Place text snippets |
| object | Metadata for all referenced URLs, keyed by URL |
| string | Page title |
| string | Source hostname |
| array | The page's date in four fixed positions: full date, |
| string | The page's own description, independent of the query. Requires |
| string | Site name. Requires |
| string | Favicon URL. Requires |
| object/null | Page thumbnail ( |
| string? | Best snippet for the page |
Note: Snippets may contain plain text OR JSON-serialized structured data (tables, schemas, code blocks). LLMs handle this mixed format well.
maximum_number_of_tokens=8192, count=20). Reduce for simple lookups, increase for complex research.context_threshold_mode=strict when precision > recall.count and maximum_number_of_tokens that meet your needs. For local queries, provide location headers.Get started with chainctlchainctl skill install public/brave/llm-context:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.cgr.dev/public/github.com/brave/skills/llm-context:latest
MIT
HARDENING.md
LICENSE
SKILL.md