Search My Work
search_my_workFind your own or team tasks, and where in their sessions the words are. For continuing work, get the current repository key from the local plugin at query time and search that project first. Query: two to four key words of the work. Russian and English word forms match ("выпускал сертификат", "issued certificates"), translations do not: session titles are in English, so add the English terms to the user's words. Tasks come best match first (a title match outranks a word in a session, words found together outrank scattered ones), newest among equals. matched_sessions names the sessions the words were found in; a session's excerpt quotes the passage, and its cursor and text_offset go straight to get_session_excerpt. words_matched all_but_one: no task held every word, these miss one; none: the query held only stop words, the tasks are the newest. Why was this changed, or where did this code come from: pass paths (repository-relative, as git names them) or a commit sha from git blame or log, with agent_sessions, the values of that commit's Agent-Session trailer, and subject, the first line of its message; query may then be empty. A commit or a trailer finds its sessions in every repository (scope all), since an agent may have committed in another repository than its folder's: found_by says how, agent_session (the trailer names it), commit (its memory holds it) or team_commit (the team's repository puts it to it). Each matched session's change then gives the turn (cursor) where it changed the file or made the commit, and request, the person's last real request before it (short replies such as "yes" skipped): read from request.cursor to cursor with get_session_excerpt. own: true when the session made the change itself (its agent's edit or a git commit it ran), false when it only saw it in its git snapshots, as another session working in the same folder does; those that made it come first. found_by agent_session without a cursor: the trailer alone, which the hook writes into a commit made by hand too, for every session whose edits it holds, so it is not own; own comes from the session's git commit of that title (give subject) or its own edits of paths. op outside on a commit: the commit was made outside the session (by hand, a client's button) of files its agent edited; cursor is the agent's last edit of them before it. found_by edits_before: nothing names the commit (made by hand after the session, no trailer), and this session's agent last edited its files before it (give committed_at where the team's repository is not under the GitHub App): its work, not proven its commit; say so. closed_sessions: a teammate's session behind the change that you may not read (your team shows its members each other's sessions, their transcripts only to owners and admins): say whose it is and give its page, and that its author or an admin can tell more; nothing of it is returned. Offer the matching tasks when there are several; never silently broaden a repository search. No model generation.
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": {
"query": "<query>"
},
"name": "search_my_work"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| paths | No | Files to find the sessions that changed them, relative to the repository root. | |
| query | Yes | ||
| scope | No | Default project. Use all only for an explicitly broader search. | |
| commit | No | A commit sha, 7 to 40 hex characters, to find the session that made it. | |
| cursor | No | ||
| subject | No | The first line of that commit's message (git show -s --format=%s): tells the session's git commits apart when it committed in another repository. | |
| task_id | No | ||
| project_id | No | ||
| project_key | No | ||
| committed_at | No | When that commit was made (git show -s --format=%cI): with no trailer and no session that made it, the session whose agent last edited its files before then is found (found_by edits_before). | |
| agent_sessions | No | The Agent-Session trailer values of that commit. |