# ONE Engine Text Pad-Start

> ONE Engine Text Pad-Start is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Left-pads a text string to a specified total length using a given fill character, equivalent to JavaScript's String.prototype.padStart().

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/text/pad-start?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-text-pad-start-0a7021fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gLN_MwQSRWyYbDko6tIF-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability one-engine-text-pad-start-0a7021fd -d '<json body>'
```

Example prompt: Can you left-pad the number 42 with zeros so it's 5 characters long? I need it to look like '00042'.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

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'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fill": {
   "type": "string"
  },
  "text": {
   "type": "string"
  },
  "length": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "00042"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-text-pad-start-0a7021fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
