Media
Convert images to black and white simple graphics suitable for printing
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/image-to-printable-art' \
-F 'file=@/path/to/imageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/image-to-printable-art' \
-F 'imageFile=/path/to/file.ext' \
-F 'conversionType=threshold' \
-F 'threshold=128' \
-F 'detailLevel=medium' \
-F 'outputSize=800x600'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/image-to-printable-art| Name | Type | Required | Description |
|---|---|---|---|
| imageFile | fileupload required | Yes | — |
| conversionType | select | Yes | — |
| threshold | range | Yes | Adjust the balance between black and white (0 = more white, 255 = more black) |
| detailLevel | select | Yes | — |
| outputSize | select | Yes |
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-image-to-printable-art": {
"name": "image-to-printable-art",
"description": "Convert images to black and white simple graphics suitable for printing",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-to-printable-art",
"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": "image-to-printable-art",
"arguments": {
"imageFile": "https://example.com/file.ext",
"conversionType": "threshold",
"threshold": 128,
"detailLevel": "medium",
"outputSize": "800x600"
}
}
}| — |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]