{"uid":"cap_9WFQ_ehQqMmAfHJl3rpft","slug":"delx-pad-left-7212749d","name":"Delx Pad Left","description":"Left-pad a string to a target width. Call when you need fixed-width IDs or zero-padded codes. 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-left","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":"00042","width":5,"schema":"delx/util-pad-left/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_cVA8zy_lxXX_x5jzgu1pj","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":"Left-pads a string to a specified target width using a configurable fill character, returning the padded text and its final width.","exampleAgentPrompt":"Left-pad the string '42' with zeros so it's exactly 8 characters wide.","exampleUseCases":[{"title":"Zero-padding numeric order IDs","prompt":"I need to zero-pad the order ID '1053' so it's always exactly 10 digits wide — can you do that?"},{"title":"Fixed-width column formatting","prompt":"Pad the label 'SKU' with spaces on the left until it's 20 characters wide so it lines up correctly in my report."},{"title":"Generating padded hex codes","prompt":"Take the string 'ff3a' and left-pad it with zeros to make it exactly 8 characters long."}],"resultDescription":"Returns the padded text string and its final width as a JSON object, confirming the output length matches the requested target width.","failureModes":["Missing required field (text or width) returns a 4xx error","Width smaller than or equal to the original string length returns the string unchanged or an error","Non-integer width value causes a validation error","Empty fill character may default to space or cause an error depending on API behavior","Payment failure or insufficient USDC balance prevents the call from completing"],"whenToPreferThis":"Choose this endpoint when you need a simple, stateless, no-infrastructure string left-padding operation inside an agent pipeline — especially when you lack a local utility function or want to avoid shipping a formatting library. Ideal for zero-padded IDs, fixed-width alignment, or normalizing variable-length codes before storage, display, or downstream processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:06.649Z","isFirstParty":false}