pad_text
Add padding characters to text to reach a specified total length, choosing 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'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"length": "<length>"
},
"name": "pad_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| length | Yes | ||
| char | No | ||
| side | No | left |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |