{"ok":true,"result":{"slug":"add-prefix-suffix-to-lines","name":"Add Prefix and Suffix to Lines","summary":"Add (or strip) a prefix and suffix on every line, with optional quoting, numbering and a custom joiner, e.g. to build an SQL IN list or a JS array.","description":"Add text to the start or end of every line, number lines, wrap them in quotes and join them into an SQL IN list or JS array. Strip a prefix or suffix too.","method":"POST","endpoint":"/api/v1/tools/add-prefix-suffix-to-lines","plan":"free","mcpName":"add_prefix_suffix_to_lines","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"The text, one item per line.","maxLength":200000},"mode":{"type":"string","description":"add puts the prefix and suffix on each line; strip removes them where present.","default":"add","enum":["add","strip"],"maxLength":200000},"prefix":{"type":"string","description":"Text put before each line.","default":"","maxLength":1000},"suffix":{"type":"string","description":"Text put after each line.","default":"","maxLength":1000},"quote":{"type":"string","description":"Wrap each line in quotes (inside the prefix and suffix).","default":"none","enum":["none","single","double","backtick"],"maxLength":200000},"escapeQuotes":{"type":"boolean","description":"Escape quotes inside a line: doubled for single quotes (SQL style), backslash otherwise.","default":true},"numbering":{"type":"boolean","description":"Put a line number in front of each line.","default":false},"start":{"type":"integer","description":"First line number when numbering.","default":1,"minimum":-1000000,"maximum":1000000},"step":{"type":"integer","description":"Increment between line numbers.","default":1,"minimum":-1000,"maximum":1000},"padding":{"type":"integer","description":"Minimum digits for the number, zero-padded. 0 means no padding.","default":0,"minimum":0,"maximum":20},"numberSeparator":{"type":"string","description":"Text between the number and the line, e.g. \". \" or \") \".","default":". ","maxLength":100},"skipEmpty":{"type":"boolean","description":"Drop blank lines.","default":false},"trimLines":{"type":"boolean","description":"Trim spaces at both ends of each line first.","default":false},"joinWith":{"type":"string","description":"Text placed between output lines. The escapes \\n, \\r, \\t and \\\\ are understood.","default":"\\n","maxLength":100},"wrapStart":{"type":"string","description":"Text before the whole result, e.g. \"(\".","default":"","maxLength":1000},"wrapEnd":{"type":"string","description":"Text after the whole result, e.g. \")\".","default":"","maxLength":1000}},"required":["input"]},"example":{"input":"apple\nbanana\ncherry","quote":"single","joinWith":", ","wrapStart":"(","wrapEnd":")","skipEmpty":true,"trimLines":true},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/add-prefix-suffix-to-lines","page":"https://pithlab.com/tools/add-prefix-suffix-to-lines"}}