Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:

# If assets/ changed, add crates that depend on those assets
if echo "$CHANGED_FILES" | grep -qP '^assets/'; then
FILE_CHANGED_PKGS=$(printf '%s\n%s\n%s\n%s' "$FILE_CHANGED_PKGS" "settings" "storybook" "assets" | sort -u)
FILE_CHANGED_PKGS=$(printf '%s\n%s\n%s' "$FILE_CHANGED_PKGS" "settings" "assets" | sort -u)
fi

# Combine all changed packages
Expand Down
4 changes: 2 additions & 2 deletions assets/settings/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@
"terminal": true,
"thinking": true,
"update_plan": true,
"web_search": true,
"search_web": true,
},
},
"ask": {
Expand All @@ -1095,7 +1095,7 @@
"spawn_agent": true,
"thinking": true,
"update_plan": true,
"web_search": true,
"search_web": true,
},
},
"minimal": {
Expand Down
2 changes: 1 addition & 1 deletion crates/agent/src/tools/web_search_tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl AgentTool for WebSearchTool {
type Input = WebSearchToolInput;
type Output = WebSearchToolOutput;

const NAME: &'static str = "web_search";
const NAME: &'static str = "search_web";

fn kind() -> acp::ToolKind {
acp::ToolKind::Fetch
Expand Down
6 changes: 3 additions & 3 deletions crates/settings_ui/src/pages/tool_permissions_setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const TOOLS: &[ToolInfo] = &[
regex_explanation: "Patterns are matched against the URL being fetched.",
},
ToolInfo {
id: "web_search",
id: "search_web",
name: "Web Search",
description: "Web search queries",
regex_explanation: "Patterns are matched against the search query.",
Expand Down Expand Up @@ -309,7 +309,7 @@ fn get_tool_render_fn(
"create_directory" => render_create_directory_tool_config,
"save_file" => render_save_file_tool_config,
"fetch" => render_fetch_tool_config,
"web_search" => render_web_search_tool_config,
"search_web" => render_web_search_tool_config,
"restore_file_from_disk" => render_restore_file_from_disk_tool_config,
_ => render_terminal_tool_config, // fallback
}
Expand Down Expand Up @@ -1389,7 +1389,7 @@ tool_config_page_fn!(render_move_path_tool_config, "move_path");
tool_config_page_fn!(render_create_directory_tool_config, "create_directory");
tool_config_page_fn!(render_save_file_tool_config, "save_file");
tool_config_page_fn!(render_fetch_tool_config, "fetch");
tool_config_page_fn!(render_web_search_tool_config, "web_search");
tool_config_page_fn!(render_web_search_tool_config, "search_web");
tool_config_page_fn!(
render_restore_file_from_disk_tool_config,
"restore_file_from_disk"
Expand Down
2 changes: 1 addition & 1 deletion docs/.doc-examples/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Reads the content of a specified file in the project, allowing access to file co

Allows the Agent to work through problems, brainstorm ideas, or plan without executing actions, useful for complex problem-solving.

### `web_search` {#web-search}
### `search_web` {#search-web}

Searches the web for information, providing results with snippets and links from relevant web pages, useful for accessing real-time information.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/ai/tool-permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The `tool_permissions` setting lets you customize tool permissions by specifying
| `restore_file_from_disk` | The file paths |
| `save_file` | The file paths |
| `fetch` | The URL |
| `web_search` | The search query |
| `search_web` | The search query |

For MCP tools, use the format `mcp:<server>:<tool_name>`.
For example, a tool called `create_issue` on a server called `github` would be `mcp:github:create_issue`.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/ai/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Reads the content of a specified file in the project, allowing access to file co

Allows the Agent to work through problems, brainstorm ideas, or plan without executing actions, useful for complex problem-solving.

### `web_search`
### `search_web`

Searches the web for information, providing results with snippets and links from relevant web pages, useful for accessing real-time information.

Expand Down
2 changes: 1 addition & 1 deletion tooling/xtask/src/tasks/workflows/run_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ fn orchestrate_impl(rules: &[&PathCondition], target: OrchestrateTarget) -> Name

# If assets/ changed, add crates that depend on those assets
if echo "$CHANGED_FILES" | grep -qP '^assets/'; then
FILE_CHANGED_PKGS=$(printf '%s\n%s\n%s\n%s' "$FILE_CHANGED_PKGS" "settings" "storybook" "assets" | sort -u)
FILE_CHANGED_PKGS=$(printf '%s\n%s\n%s' "$FILE_CHANGED_PKGS" "settings" "assets" | sort -u)
fi

# Combine all changed packages
Expand Down
Loading