AgentPMT - The Agentic Economy

Text Manipulation and Converter

Core Utility
$0.05/requestMin Purchase: 20Min Purchase Price: $1

Details

Text Tools is a comprehensive text manipulation utility providing 23 operations across four categories: text manipulation, case conversion, special transformations, and counting. Text manipulation operations handle whitespace and line-level transformations. These include removing line breaks, collapsing extra spaces, sorting lines alphabetically (ascending or descending), removing duplicate lines while preserving order, adding quotes (single, double, or backtick) to each line, converting between tabs and spaces with configurable width (1–16), trimming whitespace from lines, removing empty lines, normalizing whitespace comprehensively, indenting and dedenting text, wrapping text at a specified column width (10–200), unwrapping text, and reversing line order. Case conversion supports 11 formats through a single action: camelCase, snake_case, PascalCase, kebab-case, SCREAMING_SNAKE_CASE, UPPERCASE, lowercase, Title Case, Sentence case, dot.case, and path/case. Special transformations include reversing text character-by-character, removing accents and diacritical marks (é becomes e), alternating case (aLtErNaTiNg), and detecting the case style of input text. Counting operations return line count, word count, and detailed character statistics including totals with and without spaces, letter count, digit count, and space count.

Use Cases

Converting variable names between programming language conventions, cleaning and normalizing imported data, meeting word or character count requirements, formatting text to specific column widths, sorting and deduplicating configuration lists, standardizing tabs versus spaces, generating quoted values for CSV or config files, creating URL slugs from Unicode text, detecting inconsistent naming conventions in codebases, preparing text for systems requiring ASCII-only input, batch formatting log files or text exports, removing accents for search indexing.

Parameters

(required properties listed first)

action*required
Type:string
Description:Use 'get_instructions' to retrieve documentation. The text operation to perform. Available actions: Text Manipulation (remove-line-breaks, remove-extra-spaces, sort-lines, remove-duplicate-lines, add-quotes, tabs-to-spaces, spaces-to-tabs, trim-whitespace, remove-empty-lines, normalize-whitespace, indent-text, dedent-text, wrap-text, unwrap-text, reverse-lines), Case Conversion (change-case, reverse-text, remove-accents, alternate-case, smart-case-detect), Counting (count-lines, count-words, count-characters)
Allowed values:
get_instructionsremove-line-breaksremove-extra-spacessort-linesremove-duplicate-linesadd-quotestabs-to-spacesspaces-to-tabstrim-whitespaceremove-empty-linesnormalize-whitespaceindent-textdedent-textwrap-textunwrap-textreverse-lineschange-casereverse-textremove-accentsalternate-casesmart-case-detectcount-linescount-wordscount-characters
text
Type:string
Description:The input text to process. Required for all actions except get_instructions.
order
Type:string
Description:Sort order for sort-lines action: 'asc' for ascending (default), 'desc' for descending
Default:asc
Allowed values:
ascdesc
quote_type
Type:string
Description:Type of quote to add for add-quotes action: 'single', 'double' (default), or 'backtick'
Default:double
Allowed values:
singledoublebacktick
tab_width
Type:integer
Description:Number of spaces per tab for tabs-to-spaces and spaces-to-tabs actions (1-16, default: 4)
Default:4
Minimum:1
Maximum:16
indent_char
Type:string
Description:Character to use for indentation in indent-text action: 'space' (default) or 'tab'
Default:space
Allowed values:
spacetab
indent_count
Type:integer
Description:Number of indent characters per level for indent-text action (1-16, default: 4)
Default:4
Minimum:1
Maximum:16
width
Type:integer
Description:Maximum line width for wrap-text action (10-200, default: 80)
Default:80
Minimum:10
Maximum:200
case_type
Type:string
Description:Target case type for change-case action. Required when action is 'change-case'. Options: camel (camelCase), snake (snake_case), pascal (PascalCase), kebab (kebab-case), screaming-snake (SCREAMING_SNAKE_CASE), upper (UPPERCASE), lower (lowercase), title (Title Case), sentence (Sentence case), dot (dot.case), path (path/case)
Allowed values:
camelsnakepascalkebabscreaming-snakeupperlowertitlesentencedotpath

API Example

curl -X POST "https://api.agentpmt.com/products/purchase" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-api-key-here" \
  -H "X-Budget-Key: your-budget-key-here" \
  -d '{
    "product_id": "69489d03b54506f955d789e9",
    "parameters": {
      "action": "get_instructions",
      "order": "asc",
      "quote_type": "double",
      "tab_width": 4,
      "indent_char": "space",
      "indent_count": 4,
      "width": 80
    }
  }'

Login to view your API and budget keys. The example above uses placeholder values. Sign in to see personalized code with your actual credentials.

About The Developer

Apoth3osis logo

Apoth3osis

13 stars

Joined Agent Payment: August 14, 2025

We build tools that enable AI agents to excel in the mathematical realm.

Our small team develops experimental and unique solutions in the AI arena, with a strong focus on modular computing for agentic applications and custom model deployment. We have handled projects for a variety of applications across many sectors, from algorithmic trading and financial analysis, to molecular simulations and predictions, to habitat and biodiversity monitoring and wildlife conservation.

Text Manipulation and Converter by Apoth3osis | AgentPMT