Text Processing
Remove common prefixes from each line with intelligent detection and customizable options
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/prefix-remover' \
-H 'Content-Type: application/json' \
-d '{"text":"Enter text with lines that have common prefixes to remove...","mode":"auto","customPrefix":"Enter custom prefix to remove...","caseSensitive":true,"trimWhitespace":false,"preserveIndentation":true,"minLength":1,"onlyIfAllMatch":false}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/prefix-remover| Name | Type | Required | Description |
|---|---|---|---|
| text | textarea | Yes | — |
| mode | select | No | — |
| customPrefix | text | No | Only used when "Use custom prefix" mode is selected |
| caseSensitive | checkbox | No | — |
| trimWhitespace | checkbox | No | — |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-prefix-remover": {
"name": "prefix-remover",
"description": "Remove common prefixes from each line with intelligent detection and customizable options",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=prefix-remover",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "prefix-remover",
"arguments": {
"text": "Enter text with lines that have common prefixes to remove...",
"mode": "auto",
"customPrefix": "Enter custom prefix to remove...",
"caseSensitive": true,
"trimWhitespace": false,
"preserveIndentation": true,
"minLength": 1,
"onlyIfAllMatch": false
}
}
}Questions or issues? Contact [email protected]
| preserveIndentation |
| checkbox |
| No |
| — |
| minLength | number | No | — |
| onlyIfAllMatch | checkbox | No | If enabled, only remove prefix if all lines contain it |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}