Random Lottery
Random lottery system for selecting winners from participant list
API Documentation
Request Endpoint
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| participantFile | file (Upload required) | Yes | Upload Excel file with columns: Name, ID, Department |
| participantText | textarea | No | Enter participants manually (optional if using file) |
| prizeCount | number | Yes | - |
File type parameters need to be uploaded first via POST /upload/random-lottery to get filePath, then pass filePath to the corresponding file field.
Response Format
{
"result": "Initial display content",
"interactive": true,
"components": [
{
"type": "timer",
"id": "timer1",
"config": {
"label": "Countdown",
"duration": 60
}
}
],
"state": {
"key": "value"
},
"actions": [
{
"type": "start",
"id": "start-btn",
"label": "Start"
}
],
"styles": "/* Custom CSS */",
"scripts": "/* Client-side scripts */",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-random-lottery": {
"name": "random-lottery",
"description": "Random lottery system for selecting winners from participant list",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=random-lottery",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
Supports URL file links or Base64 encoding for file parameters.
If you encounter any issues, please contact us at [email protected]