{"uid":"cap_GqWH96Z7QONyt-6nj7I13","slug":"delx-pad-string-d802a61a","name":"Delx Pad String","description":"Pad a string to width. Use for fixed-width logs, CSV alignment, or receipt fields that need left/right padding. Returns the padded string with the applied width and fill character. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.","url":"https://api.delx.ai/api/v1/x402/pad-string?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":100000,"description":"Primary text input (max 100k chars). Processed first-party; not retained as a dataset."},"width":{"type":"integer","minimum":1,"description":"Optional pad/wrap width when the tool supports it."}}},"responseSchema":{"type":"json","example":{"text":"hello agent world","width":10,"schema":"delx/pad-string/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9nyzMdCliWkgPg3s7b8l9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pads a string to a specified width with a fill character, returning the padded result with applied width metadata","exampleAgentPrompt":"Pad the string 'INVOICE-2024' to a width of 30 characters so it lines up with the other fields in my fixed-width receipt output.","exampleUseCases":[{"title":"Fixed-width log line alignment","prompt":"I'm generating agent activity logs and need every label padded to exactly 20 characters so the columns line up — can you pad 'RequestReceived' to width 20?"},{"title":"CSV column alignment for export","prompt":"Pad the text 'Total Due' to 25 characters wide so it lines up correctly in my fixed-width CSV export alongside the other column headers."},{"title":"Receipt field formatting","prompt":"Format the string 'Order #8821' by padding it to 40 characters so it fills the full width of a printed receipt line."}],"resultDescription":"Returns a JSON object containing the padded string, the applied width, and the fill character used. The padded string has been extended to the requested width using the specified (or default) fill character, aligned left or right as configured.","failureModes":["Width below minimum (1) returns a structured validation error with no charge","Text exceeding 100,000 characters is rejected with a validation error","Missing required fields return structured validation errors at no cost","Payment failure via x402 results in a 402 response before processing","Invalid integer type for width returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need a simple, deterministic, first-party string padding operation with no API key, no subscription, and predictable per-call micropayment pricing. Ideal for agents building fixed-width logs, receipt lines, or aligned CSV fields where local string manipulation is not available or not desired in the agent runtime. Preferred over generic LLM string formatting when exact, reproducible padding behavior is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T06:43:19.777Z","isFirstParty":false,"canonicalSlug":"delx-pad-string-d802a61a"}