{"uid":"cap_2Fm-DmTc9d9RM0QrMEvAb","slug":"delx-string-pad-4a516741","name":"Delx String Pad","description":"Pad a string to a target width with a fill character — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already converted…","url":"https://api.delx.ai/api/v1/x402/string-pad?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fill":{"type":"string","description":"Input field: fill."},"side":{"type":"string","description":"Input field: side."},"text":{"type":"string","description":"Input field: text."},"width":{"type":"integer","description":"Input field: width."}}},"responseSchema":{"type":"json","example":{"fill":"0","side":"left","text":"00042","width":5,"schema":"delx/util-string-pad/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_ini_Q0OWTdStU-c1jZl72","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 target width by prepending or appending a fill character, returning deterministic JSON output","exampleAgentPrompt":"Pad the text 'hello' to a width of 20 characters using a dash as the fill character on the right side.","exampleUseCases":[{"title":"Fixed-width column formatting","prompt":"I need to format these labels for a plain-text report — pad the string 'Status' to exactly 30 characters wide using spaces on the right so everything lines up."},{"title":"Leading zeros for numeric strings","prompt":"Can you pad the string '42' to a width of 8 characters by adding zeros on the left side?"},{"title":"Centered banner text alignment","prompt":"Pad the word 'WELCOME' to 40 characters wide using asterisks on both sides so it looks centered."}],"resultDescription":"A JSON object containing the padded string, where the input text has been extended to the specified width using the fill character on the requested side (left, right, or both). Output is deterministic and stateless.","failureModes":["Width smaller than or equal to input string length — string returned unchanged or error returned","Fill character not a single character — may cause validation error","Missing required fields (text or width) — API returns error response","Non-integer width value — schema validation failure","x402 payment failure — 402 response if USDC payment is not processed"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, stateless, micro-cost string padding operation without setting up local code — especially useful in agent pipelines doing text formatting, column alignment, or preflight string normalization where consistent fixed-width output is required. Prefer over local code when the agent environment lacks direct code execution or when you want auditable, reproducible micro-utility calls via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:54:59.935Z","isFirstParty":false,"canonicalSlug":"delx-string-pad-4a516741"}