{"uid":"cap_bsW7dNFRkTfVIA5TjjT9F","slug":"delx-pad-right-cb68c102","name":"Delx Pad Right","description":"Right-pad a string to a target width. Call when you need fixed-width columns for agent logs. Returns padded text and width for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/pad-right","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fill":{"type":"string","description":"Input field: fill."},"text":{"type":"string","description":"Input field: text."},"width":{"type":"integer","description":"Input field: width."}}},"responseSchema":{"type":"json","example":{"text":"42   ","width":5,"schema":"delx/util-pad-right/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_svPJehha5LXu9KbNSmcEq","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":"Right-pads a string with a fill character to a specified target width, returning the padded text and its final width.","exampleAgentPrompt":"Pad the text 'Status' to a width of 20 characters using a dot as the fill character so I can use it in a fixed-width column.","exampleUseCases":[{"title":"Fixed-width agent log columns","prompt":"I need to format my agent logs so each label like 'Running', 'Done', and 'Error' is padded with spaces on the right to exactly 15 characters — can you do that?"},{"title":"Aligning table output for reports","prompt":"Pad the string 'Revenue' out to 30 characters using spaces so it lines up neatly in my plain-text report table."},{"title":"Dashboard label alignment","prompt":"I'm building a terminal dashboard and need 'CPU Usage' right-padded to 25 characters with dashes so the values all start at the same column."}],"resultDescription":"Returns a JSON object containing the padded string (with fill characters appended on the right until the target width is reached) and the resulting output width as an integer.","failureModes":["Width less than or equal to current string length returns the original string unmodified","Non-integer width value causes a validation error","Missing required fields (text or width) return a 400-level error","Fill string longer than one character may cause unexpected behavior or an error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, stateless, pay-per-call string padding operation without shipping any string-formatting library or writing custom code — especially useful in agent pipelines that produce columnar logs or fixed-width text output and want a deterministic, local-only utility with no data retention.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:10.258Z","isFirstParty":false}