Science & Education
Calcule l’échelle objet, le champ, les limites de diffraction et l’échantillonnage de Nyquist, avec une barre SVG transparente.
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/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}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/microscope-scale-bar-calibrator| Nom | Type | Requis | Description |
|---|---|---|---|
| imageWidthPx | number | Oui | — |
| imageHeightPx | number | Oui | — |
| cameraPixelSizeUm | number | Oui | — |
| objectiveMagnification | number | Oui | — |
| relayMagnification | number | Oui | — |
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-microscope-scale-bar-calibrator": {
"name": "microscope-scale-bar-calibrator",
"description": "Calcule l’échelle objet, le champ, les limites de diffraction et l’échantillonnage de Nyquist, avec une barre SVG transparente.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=microscope-scale-bar-calibrator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"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 | Oui | — |
| wavelengthNm | number | Oui | — |
| numericalAperture | number | Oui | — |
| barLengthUm | number | Non | — |
| barColor | color | Non | — |
| barPosition | select | Non | — |
| barThicknessPx | number | Non | — |
| barMarginPx | number | Non | — |
| showLabel | checkbox | Non | — |
Résultat HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Des questions ou un problème ? Contactez [email protected]