pad_text
Add padding to text to reach a target length using a chosen character on left, right, or both sides.
Instructions
Pad text to specified length with a character on left, right, or both sides.
Parameters:
text — Text to pad.
length — Target total length.
char — Padding character (default: space).
side — 'left' (default), 'right', or 'both'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| length | Yes | ||
| char | No | ||
| side | No | left |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |