(ruleContent: string)
| 307 | } satisfies ToolDef<InputSchema, Output>) |
| 308 | |
| 309 | function buildSuggestions(ruleContent: string): PermissionUpdate[] { |
| 310 | return [ |
| 311 | { |
| 312 | type: 'addRules', |
| 313 | destination: 'localSettings', |
| 314 | rules: [{ toolName: WEB_FETCH_TOOL_NAME, ruleContent }], |
| 315 | behavior: 'allow', |
| 316 | }, |
| 317 | ] |
| 318 | } |
| 319 |