* Adds a custom tool pattern. Matches tools registered via the SDK's * `tools` option or via custom agents. * * @param name A specific custom tool name or `"*"` to match all custom tools.
(name: string)
| 81 | * @param name A specific custom tool name or `"*"` to match all custom tools. |
| 82 | */ |
| 83 | addCustom(name: string): ToolSet { |
| 84 | validateName("custom", name); |
| 85 | this.items.push(`custom:${name}`); |
| 86 | return this; |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Adds an MCP tool pattern. Matches tools advertised by any configured |
no test coverage detected