> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fiddler.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# truncate

> truncate

<ParamField path="value" type="string" required={true}>
  The string to truncate.
</ParamField>

<ParamField path="maxLen" type="number" required={false}>
  Maximum allowed length (defaults to
  MAX\_CONTENT\_LENGTH).
</ParamField>

<ResponseField name="return">
  The original string if short enough, or a truncated copy.
</ResponseField>
