Skip to Content
ReferenceToolshistory_search

history_search

Past tasks, tool calls and agent sessions by machine, author, task, time and text, newest first. Calls carry no arguments; journal_search on the machine has them.

Arguments

NameTypeRequiredMeaning
authorstringnoAuthor or its start: owner, agent: (every agent), agent:<name>.
kind("tasks" | "sessions" | "calls")[]noWhat to return. Default: tasks, sessions and calls.
limitintegernoAt most this many of each kind, newest first (default 50, at most 200).
machinestringnoOnly this machine (name or id).
sinceintegernoStarted (sessions: last changed) at or after this time, unix seconds.
taskintegernoOnly this task (its row and the calls that started or named it; no sessions).
textstringnoText, any case. Tasks: the command, the folder or the error (another author’s only for an agent granted exec). Sessions: path, id, folder. Calls: the tool name.
untilintegernoStarted (sessions: last changed) before this time, unix seconds.

Result

NameTypeRequiredMeaning
callsobject[]noOnly calls the server could read: calls from a paired client, encrypted end to end, are left out.
sessionsobject[]noAbsent when task was given: a task has no sessions.
tasksobject[]no

Examples

{ "name": "history_search", "arguments": {} }

Limits

The token is the only check: no risk class applies, and the call is not counted against the plan. A call with machine set, or with sealed instead of args, returns bad_args. A refused call returns one of the error codes.

Notes

Another author’s command, folder and error are shown only to an agent whose grant includes exec; for other callers they are left out and hidden says why.