---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/context/thrift/relevance/functions/argText.md
---

# Function: argText()

```ts
function argText(args: unknown): string;
```

Defined in: [src/batteries/context/thrift/relevance.ts:117](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/context/thrift/relevance.ts#L117)

Render a tool call's arguments into a short text fragment for inclusion in a turn's relevance text
(see [groupHistoryIntoTurns](groupHistoryIntoTurns.md)) — best-effort `JSON.stringify`, truncated, empty on failure
(e.g. circular structures) or absent args.

## Parameters

| Parameter | Type      | Description                                                                         |
| --------- | --------- | ----------------------------------------------------------------------------------- |
| `args`    | `unknown` | The tool call's arguments, in whatever shape the caller's tool-call record carries. |

## Returns

`string`

A short (<=200 char) text fragment, or an empty string if `args` is nullish or
unserializable.
