Design
Convert a Figma px value into iOS pt, Android dp/sp, web rem/vw with a fluid clamp() snippet, a density-bucket render table and a touch-target accessibility audit, as a developer spec card.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/figma-ios-android-pt-dp-sp-responsive-design-spec-card' \
-H 'Content-Type: application/json' \
-d '{"px":48,"designScale":"1","role":"touch","rootFontSize":16,"viewportWidth":1440}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/figma-ios-android-pt-dp-sp-responsive-design-spec-card| Name | Type | Required | Description |
|---|---|---|---|
| px | number | Yes | — |
| designScale | select | No | — |
| role | select | No | — |
| rootFontSize | number | No | — |
| viewportWidth | number | 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-figma-ios-android-pt-dp-sp-responsive-design-spec-card": {
"name": "figma-ios-android-pt-dp-sp-responsive-design-spec-card",
"description": "Convert a Figma px value into iOS pt, Android dp/sp, web rem/vw with a fluid clamp() snippet, a density-bucket render table and a touch-target accessibility audit, as a developer spec card.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=figma-ios-android-pt-dp-sp-responsive-design-spec-card",
"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": "figma-ios-android-pt-dp-sp-responsive-design-spec-card",
"arguments": {
"px": 48,
"designScale": "1",
"role": "touch",
"rootFontSize": 16,
"viewportWidth": 1440
}
}
}HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]