Tool Details: agent_history

Basic Information

Tool Name:agent_history
Asset Name:Agent Session History
Description:Reads part of a session's history, every entry exactly as stored: turns, tool calls, full tool results, diagnostics and compaction summaries. A missing or hidden session returns {found:false}.
Adapter:agent
Asset Hash:0xd90d79c6286d5d5c55763cbd2c8b350a634a97a4e8d9d27ae4e6a7206272e7c9
Input
PropertyTypeDescription
endintegerPosition to stop before; that entry is not read. If omitted or past the last entry: the end of the history. To read further back, pass here the start of your last read, which the result gives if you passed none. For a compaction summary naming turns a to b, use start=a and end=b+1.
limitintegerMost entries to return. Default 20. It counts entries, not size: each entry comes back whole.
startintegerPosition of the first entry to read; 0 is the oldest. If omitted: as many entries as limit allows, ending at end. To continue after a result with next, pass next here.
sessionIdstringThe session to read, as 16-byte hex with or without 0x. If omitted: the session you are in, or outside a session the newest visible one.
agentIdstringThe agent to read: an id, g/<id>, <ownerDID>/g/<id>, or the agent's DID <ownerDID>:g:<id>. Required unless you are that agent. Naming another agent needs read access to it.
Output
PropertyTypeDescription
entriesarrayThe stored entries, unchanged, oldest first. entries[i] is at position start + i, with start as passed or returned.
found*booleanFalse when the session is missing or hidden; no other field is then present.
startintegerPresent only when the input had no start: the position of the first entry returned.
sessionIdstringThe session read.
nextintegerPresent only when the range held more than limit entries: the position to continue from.

MCP Tool Usage Examples

This tool can be called via the MCP (Model Context Protocol) endpoint. Here are examples of how to use it:

JSON-RPC Call Example:

POST to https://venue-4.covia.ai/mcp

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "agent_history",
    "arguments": {
      "input": "your input here"
    }
  }
}
cURL Example:
curl -X POST https://venue-4.covia.ai/mcp \\
  -H "Content-Type: application/json" \\
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "agent_history",
      "arguments": {
        "input": "your input here"
      }
    }
  }'
Python Example:
import requests
import json

url = "https://venue-4.covia.ai/mcp"
payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "agent_history",
        "arguments": {
            "input": "your input here"
        }
    }
}

response = requests.post(url, json=payload)
result = response.json()
print(result)
JavaScript/Node.js Example:
const fetch = require('node-fetch');

const url = 'https://venue-4.covia.ai/mcp';
const payload = {
    jsonrpc: '2.0',
    id: 1,
    method: 'tools/call',
    params: {
        name: 'agent_history',
        arguments: {
            input: 'your input here'
        }
    }
};

fetch(url, {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data));

Asset Metadata

{
	"name": "Agent Session History",
	"description": "Reads part of a session's history, every entry exactly as stored: turns, tool calls, full tool results, diagnostics and compaction summaries. A missing or hidden session returns {found:false}.",
	"dateCreated": "2026-11-09T00:00:00Z",
	"operation": {
		"adapter": "agent:history",
		"readOnly": true,
		"toolName": "agent_history",
		"input": {
			"type": "object",
			"properties": {
				"agentId": { "type": "string", "description": "The agent to read: an id, g/<id>, <ownerDID>/g/<id>, or the agent's DID <ownerDID>:g:<id>. Required unless you are that agent. Naming another agent needs read access to it." },
				"sessionId": { "type": "string", "description": "The session to read, as 16-byte hex with or without 0x. If omitted: the session you are in, or outside a session the newest visible one." },
				"start": { "type": "integer", "minimum": 0, "description": "Position of the first entry to read; 0 is the oldest. If omitted: as many entries as limit allows, ending at end. To continue after a result with next, pass next here." },
				"end": { "type": "integer", "minimum": 0, "description": "Position to stop before; that entry is not read. If omitted or past the last entry: the end of the history. To read further back, pass here the start of your last read, which the result gives if you passed none. For a compaction summary naming turns a to b, use start=a and end=b+1." },
				"limit": { "type": "integer", "minimum": 1, "maximum": 100, "description": "Most entries to return. Default 20. It counts entries, not size: each entry comes back whole." }
			}
		},
		"output": {
			"type": "object",
			"required": ["found"],
			"properties": {
				"found": { "type": "boolean", "description": "False when the session is missing or hidden; no other field is then present." },
				"sessionId": { "type": "string", "description": "The session read." },
				"start": { "type": "integer", "description": "Present only when the input had no start: the position of the first entry returned." },
				"next": { "type": "integer", "description": "Present only when the range held more than limit entries: the position to continue from." },
				"entries": { "type": "array", "items": { "type": "object" }, "description": "The stored entries, unchanged, oldest first. entries[i] is at position start + i, with start as passed or returned." }
			}
		}
	}
}

Navigation

Back to adapter details

Back to all adapters

Back to index