MCPcopy Create free account
hub / github.com/coder/coder / builtinPlanToolAllowed

Function builtinPlanToolAllowed

coderd/x/chatd/chatd.go:6535–6549  ·  view source on GitHub ↗
(name string, isRootChat bool)

Source from the content-addressed store, hash-verified

6533}
6534
6535func builtinPlanToolAllowed(name string, isRootChat bool) bool {
6536 switch name {
6537 case "read_file", "execute", "process_output", "read_skill", "read_skill_file":
6538 return true
6539 case "write_file", "edit_files", "list_templates", "read_template",
6540 "create_workspace", "start_workspace", "stop_workspace", "propose_plan", "spawn_agent",
6541 "spawn_explore_agent", "wait_agent", "ask_user_question", "attach_file":
6542 return isRootChat
6543 case "process_list", "process_signal", "message_agent", "close_agent",
6544 "spawn_computer_use_agent":
6545 return false
6546 default:
6547 return false
6548 }
6549}
6550
6551func toolAllowedForTurn(
6552 tool fantasy.AgentTool,

Callers 1

toolAllowedForTurnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected