; // Tag -> attributes mapping
+}
+```
+
+## Returns
+
+```typescript
+{
+ sanitized: string; // The sanitized HTML
+ removedCount: number; // Number of elements removed
+ warnings: string[]; // Descriptions of what was removed
+}
+```
+
+## Examples
+
+### Basic XSS Prevention
+
+```typescript
+const result = await htmlSanitizeTool.execute({
+ html: 'Click me
',
+});
+
+console.log(result.sanitized);
+// Click me
+
+console.log(result.warnings);
+// ['Removed inline event handlers (onclick, onerror, etc.)', 'Removed script tags to prevent XSS']
+```
+
+### Custom Allowed Tags
+
+```typescript
+const result = await htmlSanitizeTool.execute({
+ html: 'Paragraph
Div
',
+ options: {
+ allowedTags: ['p'], // Only allow tags
+ },
+});
+
+console.log(result.sanitized);
+//
Paragraph
Div
+```
+
+### Custom Allowed Attributes
+
+```typescript
+const result = await htmlSanitizeTool.execute({
+ html: 'Link',
+ options: {
+ allowedTags: ['a'],
+ allowedAttributes: {
+ 'a': ['href'], // Only allow href attribute on tags
+ },
+ },
+});
+
+console.log(result.sanitized);
+// Link
+```
+
+### Remove Dangerous Protocols
+
+```typescript
+const result = await htmlSanitizeTool.execute({
+ html: 'Click',
+});
+
+console.log(result.sanitized);
+// Click
+
+console.log(result.warnings);
+// ['Removed javascript: protocol from links']
+```
+
+### Remove iframes and Embeds
+
+```typescript
+const result = await htmlSanitizeTool.execute({
+ html: 'Safe