library_prompt_build
Assemble a bounded prompt from recent turns and a reading desk, keeping full history on disk to manage context window size.
Instructions
Build a complete stateless model-input envelope from bounded recent turns plus a replacement reading desk. Full history remains shelved on disk instead of growing the live prompt.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "library_prompt_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_books | No | ||
| collection | No | Optional library collection/namespace; defaults to the configured collection. | |
| session_id | No | codex | |
| record_user | No | ||
| token_budget | No | ||
| user_message | No | ||
| system_prompt | No | ||
| recent_token_budget | No |