ts_outputs
Retrieves the last conversation items—user messages, assistant final text, and optional tool calls/results—from an agent session while excluding model reasoning.
Instructions
The last final items of a session's conversation: user messages, assistant final text, tool calls and tool results (shortened). Never the models' reasoning. last_n: items (default 5, max 20). include_tools: false hides tool calls and results. max_chars_per_item: default 1500, max 4000. ws_id: full id or unique prefix (>= 6 chars).
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": {
"ws_id": "<ws_id>"
},
"name": "ts_outputs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws_id | Yes | ||
| last_n | No | ||
| include_tools | No | ||
| max_chars_per_item | No |