WithExcludeTools specifies tools that should be disabled regardless of other settings. These tools will be excluded even if their toolset is enabled or they are in the additional tools list. This takes precedence over all other tool enablement settings. Input is cleaned (trimmed, deduplicated) befor
(toolNames []string)
| 162 | // Input is cleaned (trimmed, deduplicated) before applying. |
| 163 | // Returns self for chaining. |
| 164 | func (b *Builder) WithExcludeTools(toolNames []string) *Builder { |
| 165 | cleaned := cleanTools(toolNames) |
| 166 | if len(cleaned) > 0 { |
| 167 | b.filters = append(b.filters, CreateExcludeToolsFilter(cleaned)) |
| 168 | } |
| 169 | return b |
| 170 | } |
| 171 | |
| 172 | // CreateExcludeToolsFilter creates a ToolFilter that excludes tools by name. |
| 173 | // Any tool whose name appears in the excluded list will be filtered out. |