context_provenance
Retrieve recent provenance events to track context history and maintain information continuity across sessions.
Instructions
Get recent context/provenance events
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No |
Implementation Reference
- scripts/contextfs.js:803-807 (handler)The core logic that retrieves provenance events by reading events.jsonl from the contextfs namespace.
function getProvenance(limit = 50) { const eventsPath = path.join(CONTEXTFS_ROOT, NAMESPACES.provenance, 'events.jsonl'); const events = readJsonl(eventsPath); return events.slice(-limit); } - scripts/tool-registry.js:363-372 (registration)The tool definition and input schema registration.
readOnlyTool({ name: 'context_provenance', description: 'Get recent context/provenance events', inputSchema: { type: 'object', properties: { limit: { type: 'number' }, }, }, }),