Data Processing
Select specific columns from CSV data by column names or indices. Perfect for extracting relevant data from large CSV files with many columns.
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/csv-column-selector' \
-H 'Content-Type: application/json' \
-d '{"csvInput":"Enter your CSV data (first row should contain headers)...","delimiter":",","columnSelectionMethod":"by_name","selectedColumns":"Enter column names, indices, or ranges depending on selection method","outputDelimiter":",","includeHeader":true,"skipEmptyColumns":false,"trimValues":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/csv-column-selector| Nom | Type | Requis | Description |
|---|---|---|---|
| csvInput | textarea | Oui | — |
| delimiter | select | Oui | — |
| columnSelectionMethod | select | Oui | — |
| selectedColumns | text | Oui | For "By Name": column1,column2,column3 For "By Index": 1,3,5 For "By Range": 1-3,5,7-9 |
| outputDelimiter | select | 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-csv-column-selector": {
"name": "csv-column-selector",
"description": "Select specific columns from CSV data by column names or indices. Perfect for extracting relevant data from large CSV files with many columns.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=csv-column-selector",
"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": "csv-column-selector",
"arguments": {
"csvInput": "Enter your CSV data (first row should contain headers)...",
"delimiter": ",",
"columnSelectionMethod": "by_name",
"selectedColumns": "Enter column names, indices, or ranges depending on selection method",
"outputDelimiter": ",",
"includeHeader": true,
"skipEmptyColumns": false,
"trimValues": true
}
}
}| — |
| includeHeader | checkbox | Non | — |
| skipEmptyColumns | checkbox | Non | Remove columns that are completely empty in the data |
| trimValues | checkbox | Non | Remove whitespace from beginning and end of cell values |
Résultat texte
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Des questions ou un problème ? Contactez [email protected]