Science & Education
Рассчитывает масштаб, поле зрения, пределы дифракции и дискретизацию Найквиста, создавая прозрачную SVG-шкалу.
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/microscope-scale-bar-calibrator' \
-H 'Content-Type: application/json' \
-d '{"imageWidthPx":2048,"imageHeightPx":1536,"cameraPixelSizeUm":3.45,"objectiveMagnification":40,"relayMagnification":1,"binning":1,"wavelengthNm":550,"numericalAperture":1,"barLengthUm":20,"barColor":"#ffffff","barPosition":"bottom-right","barThicknessPx":8,"barMarginPx":32,"showLabel":true}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/microscope-scale-bar-calibrator| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| imageWidthPx | number | Да | — |
| imageHeightPx | number | Да | — |
| cameraPixelSizeUm | number | Да | — |
| objectiveMagnification | number | Да | — |
| relayMagnification | number | Да | — |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-microscope-scale-bar-calibrator": {
"name": "microscope-scale-bar-calibrator",
"description": "Рассчитывает масштаб, поле зрения, пределы дифракции и дискретизацию Найквиста, создавая прозрачную SVG-шкалу.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=microscope-scale-bar-calibrator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "microscope-scale-bar-calibrator",
"arguments": {
"imageWidthPx": 2048,
"imageHeightPx": 1536,
"cameraPixelSizeUm": 3.45,
"objectiveMagnification": 40,
"relayMagnification": 1,
"binning": 1,
"wavelengthNm": 550,
"numericalAperture": 1,
"barLengthUm": 20,
"barColor": "#ffffff",
"barPosition": "bottom-right",
"barThicknessPx": 8,
"barMarginPx": 32,
"showLabel": true
}
}
}| binning | number | Да | — |
| wavelengthNm | number | Да | — |
| numericalAperture | number | Да | — |
| barLengthUm | number | Нет | — |
| barColor | color | Нет | — |
| barPosition | select | Нет | — |
| barThicknessPx | number | Нет | — |
| barMarginPx | number | Нет | — |
| showLabel | checkbox | Нет | — |
HTML-результат
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Вопросы или проблемы? Свяжитесь с [email protected]