Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions packages/types/src/mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const DEFAULT_MODES: readonly ModeConfig[] = [
whenToUse:
"Use this mode when you need to write, modify, or refactor code. Ideal for implementing features, fixing bugs, creating new files, or making code improvements across any programming language or framework.",
description: "Write, modify, and refactor code",
groups: ["read", "edit", "command", "mcp"],
groups: ["read", "edit", "command", "mcp", "web"],
},
{
slug: "ask",
Expand All @@ -214,7 +214,7 @@ export const DEFAULT_MODES: readonly ModeConfig[] = [
whenToUse:
"Use this mode when you're troubleshooting issues, investigating errors, or diagnosing problems. Specialized in systematic debugging, adding logging, analyzing stack traces, and identifying root causes before applying fixes.",
description: "Diagnose and fix software issues",
groups: ["read", "edit", "command", "mcp"],
groups: ["read", "edit", "command", "mcp", "web"],
customInstructions:
"Reflect on 5-7 different possible sources of the problem, distill those down to 1-2 most likely sources, and then add logs to validate your assumptions. Explicitly ask the user to confirm the diagnosis before fixing the problem.",
},
Expand Down
3 changes: 2 additions & 1 deletion packages/types/src/tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { z } from "zod"
* ToolGroup
*/

export const toolGroups = ["read", "edit", "command", "mcp", "modes"] as const
export const toolGroups = ["read", "edit", "command", "mcp", "modes", "web"] as const

export const toolGroupsSchema = z.enum(toolGroups)

Expand Down Expand Up @@ -46,6 +46,7 @@ export const toolNames = [
"skill",
"generate_image",
"custom_tool",
"fetch_web_content",
] as const

export const toolNamesSchema = z.enum(toolNames)
Expand Down
2 changes: 2 additions & 0 deletions packages/types/src/vscode-extension-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,8 @@ export interface ClineSayTool {
| "runSlashCommand"
| "updateTodoList"
| "skill"
| "fetchWebContent"
url?: string
path?: string
// For readCommandOutput
readStart?: number
Expand Down
45 changes: 45 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 34 additions & 6 deletions schemas/roomodes.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
},
"source": {
"type": "string",
"enum": ["global", "project"]
"enum": [
"global",
"project"
]
},
"allowedMcpServers": {
"type": "array",
Expand All @@ -44,7 +47,15 @@
"anyOf": [
{
"type": "string",
"enum": ["read", "edit", "command", "mcp", "modes", "browser"]
"enum": [
"read",
"edit",
"command",
"mcp",
"modes",
"web",
"browser"
]
},
{
"type": "array",
Expand All @@ -53,7 +64,15 @@
"items": [
{
"type": "string",
"enum": ["read", "edit", "command", "mcp", "modes", "browser"]
"enum": [
"read",
"edit",
"command",
"mcp",
"modes",
"web",
"browser"
]
},
{
"type": "object",
Expand Down Expand Up @@ -84,17 +103,26 @@
"type": "string"
}
},
"required": ["relativePath"],
"required": [
"relativePath"
],
"additionalProperties": false
}
}
},
"required": ["slug", "name", "roleDefinition", "groups"],
"required": [
"slug",
"name",
"roleDefinition",
"groups"
],
"additionalProperties": false
}
}
},
"required": ["customModes"],
"required": [
"customModes"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/RooCodeInc/Roo-Code/blob/main/schemas/roomodes.json",
Expand Down
18 changes: 18 additions & 0 deletions src/core/assistant-message/NativeToolCallParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,15 @@ export class NativeToolCallParser {
}
break

case "fetch_web_content":
if (partialArgs.url !== undefined) {
nativeArgs = {
url: partialArgs.url,
prompt: partialArgs.prompt,
}
}
break

default:
break
}
Expand Down Expand Up @@ -992,6 +1001,15 @@ export class NativeToolCallParser {
}
break

case "fetch_web_content":
if (args.url !== undefined) {
nativeArgs = {
url: args.url,
prompt: args.prompt,
} as NativeArgsFor<TName>
}
break

default:
if (customToolRegistry.has(resolvedName)) {
nativeArgs = args as NativeArgsFor<TName>
Expand Down
Loading
Loading