{"uid":"cap_2QIGhBfSA0CSzmjSytjxd","slug":"delx-indent-text-66c44388","name":"Delx Indent Text","description":"Indent every line by N spaces. Call when you format nested blocks for agent prompts or diffs. Returns indented multiline text 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/indent-text","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Input field: text."},"spaces":{"type":"integer","description":"Input field: spaces."}}},"responseSchema":{"type":"json","example":{"text":"  line1\n  line2","schema":"delx/util-indent-text/v1","spaces":2}},"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_m8r83UgbnDWASJZN4gvQ2","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":"Indents every line of a given text block by a specified number of spaces, returning the formatted multiline result.","exampleAgentPrompt":"Can you indent every line of the following text by 4 spaces? Here it is: 'function greet() {\n  console.log(\"hello\");\n}'","exampleUseCases":[{"title":"Format agent prompt nested block","prompt":"Take this inner instruction block and indent every line by 2 spaces so it reads as a nested section inside my agent prompt."},{"title":"Indent code snippet for diff","prompt":"I need to add 4 spaces of indentation to every line of this code snippet before I paste it into a diff — can you do that?"},{"title":"Prepare YAML nested content","prompt":"Indent all of these lines by 6 spaces so I can embed them as a nested block inside my YAML config file."}],"resultDescription":"Returns the input text with every line prepended by the specified number of spaces, preserving original line breaks and content. Output is a plain multiline string ready for use in prompts, diffs, configs, or any text requiring uniform indentation.","failureModes":["Missing or non-integer 'spaces' value returns a validation error","Empty or missing 'text' field may return an error or empty string","Payment failure over x402 protocol results in 402 response before processing","Very large text inputs may be rejected or time out"],"whenToPreferThis":"Choose this endpoint when you need a simple, stateless, no-setup utility to add uniform leading spaces to every line of a text block — especially inside agent pipelines that already use x402 micropayments and need lightweight text formatting without spinning up local code execution. Ideal for formatting nested blocks in prompts, diffs, YAML, or markdown.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:05.187Z","isFirstParty":false}