Security
Detect XSS (Cross-Site Scripting) attack vectors in input strings
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/xss-payload-detector' \
-H 'Content-Type: application/json' \
-d '{"text":"Enter text or code to scan for XSS attack vectors...","checkEventHandlers":true,"checkScriptTags":true,"checkProtocols":true,"checkEncoded":true,"decodeEntities":true,"maxDepth":3}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/xss-payload-detector| Name | Type | Required | Description |
|---|---|---|---|
| text | textarea | Yes | — |
| checkEventHandlers | checkbox | No | Detect onclick, onload, onerror, and other event handlers |
| checkScriptTags | checkbox | No | Detect <script> tags and related patterns |
| checkProtocols | checkbox | No | Detect javascript:, vbscript:, data: protocols |
| checkEncoded | checkbox | No |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-xss-payload-detector": {
"name": "xss-payload-detector",
"description": "Detect XSS (Cross-Site Scripting) attack vectors in input strings",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=xss-payload-detector",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "xss-payload-detector",
"arguments": {
"text": "Enter text or code to scan for XSS attack vectors...",
"checkEventHandlers": true,
"checkScriptTags": true,
"checkProtocols": true,
"checkEncoded": true,
"decodeEntities": true,
"maxDepth": 3
}
}
}Questions or issues? Contact [email protected]
| Detect URL-encoded and HTML entity-encoded attacks |
| decodeEntities | checkbox | No | Decode HTML entities and URL encoding before analysis |
| maxDepth | number | No | Maximum depth for nested pattern analysis |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}