From 5fdd168502ff66c52382755fabd406b2d3181bbf Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 19 Jun 2025 17:42:09 -0700 Subject: [PATCH] update search tool and context provider docs/schema --- docs/docs/agent/how-it-works.md | 2 +- docs/docs/customize/context-providers.mdx | 7 ++++++- extensions/vscode/config_schema.json | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/docs/docs/agent/how-it-works.md b/docs/docs/agent/how-it-works.md index 1191fa9f8..650d5bf55 100644 --- a/docs/docs/agent/how-it-works.md +++ b/docs/docs/agent/how-it-works.md @@ -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 diff --git a/docs/docs/customize/context-providers.mdx b/docs/docs/customize/context-providers.mdx index 204f680f0..c55bbfbbd 100644 --- a/docs/docs/customize/context-providers.mdx +++ b/docs/docs/customize/context-providers.mdx @@ -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 ``` @@ -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 + } } ] } diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 76686f24e..29d882489 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -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": {