read_scratchpad
Retrieves the full execution or terminal log stored in the scratchpad for a given memory ID, using an optional workspace directory to locate the log.
Instructions
Reads the full execution or terminal log offloaded to the scratchpad (.botex/scratchpad/<memory_id>.log).
Args: memory_id: The ID of the scratchpad entry (e.g. 'mem_exec_a1b2c3d4'). workspace_dir: Workspace root directory. Empty = engine.default_workspace from the config, else the server's current directory.
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": {
"memory_id": "<memory_id>"
},
"name": "read_scratchpad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_id | Yes | ||
| workspace_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||