extract_substrings
Extract specific text segments from strings using character index ranges, supporting negative indices and partial range specifications to retrieve precise substring data.
Instructions
Extract substrings by index ranges. Supports negative indices and omitting end. Returns list of {start, end, substring, length} dicts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| ranges | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |