{"uid":"cap_gLN_MwQSRWyYbDko6tIF-","slug":"one-engine-text-pad-start-0a7021fd","name":"ONE Engine Text Pad-Start","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/text/pad-start?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fill":{"type":"string"},"text":{"type":"string"},"length":{"type":"integer"}}},"responseSchema":{"type":"json","example":{"text":"00042"}},"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_kbYAVQOO30NxKD5zhxKm_","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 text string to a specified total length using a given fill character, equivalent to JavaScript's String.prototype.padStart().","exampleAgentPrompt":"Can you left-pad the number 42 with zeros so it's 5 characters long? I need it to look like '00042'.","exampleUseCases":[{"title":"Zero-pad numeric order IDs","prompt":"Take the order number 317 and pad it with leading zeros so it's exactly 8 digits long, like a formatted order ID."},{"title":"Format fixed-width report columns","prompt":"I have the text 'Sales' and I need it left-padded with spaces to be 20 characters wide for a fixed-width report column."},{"title":"Align version numbers with dots","prompt":"Pad the string '3' with dots on the left so it's 5 characters total — like '...3' — for display in a version table."}],"resultDescription":"Returns a JSON object with a 'text' field containing the input string left-padded with the specified fill character until it reaches the desired total length. For example, padding '42' with '0' to length 5 yields '00042'.","failureModes":["Missing required 'text' or 'length' fields returns a 4xx error","If 'length' is less than or equal to the current string length, the original string is returned unchanged","Non-integer 'length' value may cause a validation error","Payment failure via x402 returns a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when an AI agent needs deterministic, server-side string left-padding without executing local code — particularly useful in sandboxed or code-free agent environments. Prefer it for formatting fixed-width identifiers, zero-padded numbers, or left-aligned columns in automated pipelines where local string manipulation is unavailable or undesirable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:41.448Z","isFirstParty":false,"canonicalSlug":"one-engine-text-pad-start-0a7021fd"}