Format Conversion
Générateur de TOC Markdown
Génère une table des matières à partir des titres Markdown avec des liens d'ancrage style GitHub
text· Résultat texteOuvrir l'outil
Démarrage rapide
Appelez cet outil depuis votre code en trois langages.
cURL
curl -X POST 'https://api.elysiatools.com/fr/api/tools/markdown-toc-generator' \
-H 'Content-Type: application/json' \
-d '{"markdownInput":"Paste your Markdown here. TOC is generated from # headings...","minLevel":"1","maxLevel":"6","listStyle":"unordered","indent":"2spaces","includeAnchor":true,"outputFormat":"markdown","wrapCodeBlock":true}'Référence de l'API
Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
Point d'accès
HTTP
POST https://api.elysiatools.com/fr/api/tools/markdown-toc-generatorParamètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| markdownInput | textarea | Oui | — |
| minLevel | select | Non | — |
| maxLevel | select | Non | — |
| listStyle | select | Non | — |
| indent | select | Non | — |
| includeAnchor |
Intégration MCP
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Configuration du serveur
Ajoutez ce bloc à la configuration de votre client MCP :
mcp.json
{
"mcpServers": {
"elysiatools-markdown-toc-generator": {
"name": "markdown-toc-generator",
"description": "Génère une table des matières à partir des titres Markdown avec des liens d'ancrage style GitHub",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=markdown-toc-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Lister les outils disponibles
Après connexion au point d'accès SSE, listez les outils exposés :
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appeler cet outil
Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "markdown-toc-generator",
"arguments": {
"markdownInput": "Paste your Markdown here. TOC is generated from # headings...",
"minLevel": "1",
"maxLevel": "6",
"listStyle": "unordered",
"indent": "2spaces",
"includeAnchor": true,
"outputFormat": "markdown",
"wrapCodeBlock": true
}
}
}Chaînez plusieurs outils dans une session avec une liste toolId séparée par des virgules, ex. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (20 max).