Utilities
Pesquisar padrões de texto em arquivos com opções avançadas (regex, sensível a maiúsculas, palavra inteira, etc.)
Chame esta ferramenta a partir do seu código em três idiomas.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/text-file-searcher' \
-F 'file=@/path/to/filePath.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/pt/api/tools/text-file-searcher' \
-F 'filePath=/path/to/file.ext' \
-F 'searchText=Text or pattern to search for' \
-F 'searchType=contains' \
-F 'caseSensitive=false' \
-F 'wholeWord=false' \
-F 'regex=false' \
-F 'includeLineNumbers=true' \
-F 'maxResults=0' \
-F 'outputFormat=detailed'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/text-file-searcher| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| filePath | fileupload necessário | Sim | — |
| searchText | text | Sim | — |
| searchType | select | Não | — |
| caseSensitive | checkbox | Não | — |
| wholeWord | checkbox | Não | — |
| regex | checkbox | Não | — |
| includeLineNumbers | checkbox | Não | — |
| maxResults | number | Não | — |
| outputFormat | select | Não | — |
Resultado de arquivo
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"mcpServers": {
"elysiatools-text-file-searcher": {
"name": "text-file-searcher",
"description": "Pesquisar padrões de texto em arquivos com opções avançadas (regex, sensível a maiúsculas, palavra inteira, etc.)",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=text-file-searcher",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "text-file-searcher",
"arguments": {
"filePath": "https://example.com/file.ext",
"searchText": "Text or pattern to search for",
"searchType": "contains",
"caseSensitive": false,
"wholeWord": false,
"regex": false,
"includeLineNumbers": true,
"maxResults": 0,
"outputFormat": "detailed"
}
}
}Dúvidas ou problemas? Contate [email protected]