update search tool and context provider docs/schema

This commit is contained in:
Dallin Romney 2025-06-19 17:42:09 -07:00
parent d30c357142
commit 5fdd168502
3 changed files with 30 additions and 2 deletions

View file

@ -31,7 +31,7 @@ Continue includes several built-in tools which provide the model access to IDE f
- **Read file** (`builtin_read_file`): read the contents of a file within the project
- **Read currently open file** (`builtin_read_currently_open_file`): read the contents of the currently open file
- **Create new file** (`builtin_create_new_file`): Create a new file within the project, with path and contents specified by the model
- **Exact search** (`builtin_exact_search`): perform a `ripgrep` search within the project
- **Exact search** (`builtin_exact_search`): perform a `ripgrep` search within the project. Results are limited to 100 results and 5000 characters (model is warned if this is exceeded)
- **Run terminal command** (`builtin_run_terminal_command`): run a terminal command from the workspace root
- **Search web** (`builtin_search_web`): Perform a web search to get top results
- **View diff** (`builtin_view_diff`): View the current working git diff

View file

@ -288,6 +288,8 @@ Reference the results of codebase search, just like the results you would get fr
```yaml title="config.yaml"
context:
- provider: search
params:
maxResults: 100 # optional, defaults to 200
```
</TabItem>
<TabItem value="json" label="JSON">
@ -295,7 +297,10 @@ Reference the results of codebase search, just like the results you would get fr
{
"contextProviders": [
{
"name": "search"
"name": "search",
"params": {
"maxResults": 100 // optional, defaults to 200
}
}
]
}

View file

@ -2144,6 +2144,29 @@
}
}
},
{
"if": {
"properties": {
"name": {
"enum": ["search"]
}
}
},
"then": {
"properties": {
"params": {
"properties": {
"maxResults": {
"title": "Max Results",
"description": "The maximum number of results to return",
"default": 200,
"type": "integer"
}
}
}
}
}
},
{
"if": {
"properties": {