diff --git a/src/renderer/services/tool-registry.ts b/src/renderer/services/tool-registry.ts index c82a987..572648b 100644 --- a/src/renderer/services/tool-registry.ts +++ b/src/renderer/services/tool-registry.ts @@ -480,13 +480,14 @@ export const TOOL_DEFINITIONS: ToolDefinition[] = [ type: 'function', function: { name: 'spawn_task', - description: 'Spawn a sub-agent to independently execute a task. The sub-agent runs in isolation without tool access and returns a result. Use this to parallelize independent sub-tasks or delegate focused work.', + description: 'Spawn a sub-agent to independently execute a task using read-only tools (file reading, web search, browser viewing, memory/session/skill queries). Use this to parallelize independent research or analysis sub-tasks.', parameters: { type: 'object', required: ['task'], properties: { task: { type: 'string', description: 'The task description for the sub-agent to execute.' }, - context: { type: 'string', description: 'Optional additional context or reference data for the sub-agent.' } + context: { type: 'string', description: 'Optional additional context or reference data for the sub-agent.' }, + model: { type: 'string', description: 'Optional model name for the sub-agent. Use a smaller/faster model for simple tasks. Defaults to current model.' } } } } @@ -767,9 +768,10 @@ export async function executeTool(toolName: string, args: Record