Skip to content
brave avatar

Llm Context

Grounding API that returns relevance-ranked, pre-extracted page content (text, tables, code) sized for LLM context windows.

CCM score
72 of 100
skills.sh installs
1.4K
GitHub stars
198
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a single-search REST endpoint (GET and POST) returning extracted chunks rather than links and snippets
  • Exposes token, URL, and snippet caps plus count, freshness, and context_threshold_mode to size and filter the context
  • Supports Goggles for custom source inclusion and exclusion, and location headers for local recall
  • Designed for RAG pipelines and agentic tool calls; multi-step AI answers use the separate answers endpoint

Install

$ npx -y skills add brave/brave-search-skills --skill llm-context -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

LLM Context

Requires API Key: Get one at https://api.search.brave.com

Plan: Included in the Search plan. See https://api-dashboard.search.brave.com/app/subscriptions/subscribe

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.

LLM Context vs AI Grounding

FeatureLLM Context (this)AI Grounding (answers)
OutputRaw extracted content for YOUR LLMEnd-to-end AI answers with citations
InterfaceREST API (GET/POST)OpenAI-compatible /chat/completions
SearchesSingle search per requestMulti-search (iterative research)
SpeedFast (<1s)Slower
PlanSearchAnswers
Endpoint/res/v1/llm/context/res/v1/chat/completions
Best forAI agents, RAG pipelines, tool callsChat interfaces, research mode

Endpoint

Details

Repository
github.com/brave/brave-search-skills
Categories
AI Agents & LLM Apps, Research & Academic, Browser Automation & Scraping
First seen
Jun 3, 2026

Questions

What does the llm-context skill do?

llm-context calls the Brave LLM Context API to return pre-extracted, relevance-ranked web content such as text chunks, tables and code blocks, so an LLM or agent can reason over real-time results directly. It is aimed at RAG and LLM grounding, and it returns page content rather than just links and snippets.

How do I install the llm-context skill?

Run npx -y skills add brave/brave-search-skills --skill llm-context -y in your project to install llm-context. Once installed, the skill lets your agent query the Brave LLM Context endpoint for grounded web content.

What does llm-context need before it can run?

llm-context needs a Brave Search API key, which you can get at api.search.brave.com, and the key is sent in an X-Subscription-Token header. The skill is included in the Search plan of Brave's API subscriptions.

How does llm-context compare with the AI Grounding answers endpoint?

llm-context returns raw extracted content for your own LLM in a single search per request, which makes it fast and suited to AI agents, RAG pipelines and tool calls. The answers endpoint instead produces end-to-end AI answers with citations after multi-search research, so llm-context is the lighter choice when you want to do the reasoning yourself.

Can llm-context limit results to trusted sources?

llm-context supports Goggles, which are custom re-ranking rules that let you discard or prefer specific sites, such as limiting results to official docs. It also accepts location headers for local recall, so results can be tailored to a place.

More from brave/brave-search-skills

All 11

Similar to Llm Context

More AI Agents & LLM Apps