Line Prefix Suffix MCP tool
findutils:line_prefix_suffix Add a prefix, a suffix, or line numbers to every line of a text. Numbering starts at any value, steps by any amount, pads with zeros on request, and can skip blank lines.
Arguments
application/json-
text
string required
Newline-separated input.
-
prefix
string optional
Text to put at the start of each line. Default: none. Default
"". -
suffix
string optional
Text to put at the end of each line. Default: none. Default
"". -
number_lines
boolean optional
Put a line number before each line. Default: false. Default
false. -
start_at
integer optional
First line number. Default: 1. Default
1. -
step
integer optional
Increment between line numbers. Default: 1. Default
1. -
number_format
string optional
Template for the number with {n} as the placeholder. Default: "{n}. " Default
"{n}. ". -
pad_numbers
boolean optional
Pad numbers with leading zeros to the width of the last number. Default: false. Default
false. -
skip_blank
boolean optional
Leave lines that hold only whitespace unchanged and unnumbered. Default: false. Default
false.
Example arguments
Verified{
"text": "apples\npears",
"number_lines": true
} More Text tools
- Case Convert Convert a string between camelCase, PascalCase, snake_case, kebab-case, SCREAMING_SNAKE, Title Case, Sentence case, lower, UPPER.
- Citation Generator Generate a reference-list citation in APA 7, MLA 9, Chicago, or Harvard style for a book, website, journal, or article.
- Code Diff Checker Returns a line-by-line diff of two code snippets: each line marked added, removed or unchanged with its original and modified line numbers,
- Code Highlight Html Returns syntax-highlighted HTML for a code snippet: HTML-escaped text wrapped in <span style="color: ..."> elements using one of six colour
- Dedupe Bookmarks Remove duplicate links from a Netscape bookmarks.html export (Chrome, Firefox, Edge, Safari) and return a clean bookmarks.html plus a CSV of
- Html Entity Finder Search the HTML entity catalog and return matching entities with their character, named entity, decimal code, hex code, and category.