(ruleContent: string)
| 397 | } satisfies ToolDef<InputSchema, Output>) |
| 398 | |
| 399 | function buildSuggestions(ruleContent: string): PermissionUpdate[] { |
| 400 | return [ |
| 401 | { |
| 402 | type: 'addRules', |
| 403 | destination: 'localSettings', |
| 404 | rules: [{ toolName: WEB_FETCH_TOOL_NAME, ruleContent }], |
| 405 | behavior: 'allow', |
| 406 | }, |
| 407 | ] |
| 408 | } |