You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 00ba38c
Browse filesBrowse the repository at this point in the historyBrowse files
feat(search-assistant): person filter and people directory lookup for the organization Assistant
The Assistant's search_workspace takes the involving filter the Search MCP gained, and organization
Assistant turns get search_people, backed by the People list/get use cases through a copilot
organization delegation bound to the member's private chat. Result shaping moves to
lib/people/directory-lookup.ts so the MCP and the Assistant share it. A people entitlement,
evaluated only on Assistant turns, tells the worker when to offer the tool.
Also fixes read_document by pasted link in the Assistant: the tool no longer turns the raw link
into a documentIds filter that the resolved document ID could never match.
'Only items this person acted on: "me" (you) or a colleague\'s email address, never a name. Each source applies its own meaning (sent, authored, owns, assigned, attended; your own mail means mail you sent) and skips sources that cannot filter by person. Use it for what someone did or is assigned, not for your exchanges with others, which it would cut to one side; with an empty query and a date range it lists that person\'s activity.'
'Search terms, without dates already supplied as filters. May be empty for a live listing with a date bound or sortBy newest or oldest where supported, or use an explicit native browse mode. Notion date-only search depends on plan capabilities.'
237
237
),
238
+
involving: z
239
+
.string()
240
+
.trim()
241
+
.min(1)
242
+
.max(254)
243
+
.optional()
244
+
.describe(
245
+
'Only items this person acted on: "me" (you) or a colleague\'s email address, never a name. Each source applies its own meaning (sent, authored, owns, assigned, attended; your own mail means mail you sent) and skips sources that cannot filter by person. Use it for what someone did or is assigned, not for your exchanges with others, which it would cut to one side; with an empty query and a date range it lists that person\'s activity.'
description: 'Read more context from an accessible connected-source document.',
387
432
inputSchema: readDocumentInputSchema,
388
433
},
434
+
{
435
+
id: 'search_people',
436
+
route: 'sim',
437
+
description:
438
+
'Look up people in this organization’s directory by name, email, title, department, or location. Returns each person’s title, department, location, email, and manager. When exactly one person matches, or with a personId, returns that person with managerChain (direct manager first) and directReports. Covers only this organization’s people; use search_workspace for customers, vendors, and other outside contacts.',
/** Said when a query matches no one, so a client looks for people outside the organization in search. */
26
-
exportconstNO_PEOPLE_MATCH_NOTE=
27
-
'No one in this organization’s directory matches. The directory lists only people in this organization; use search for anyone else, such as customer or vendor contacts.'
28
-
29
-
/**
30
-
* Whether `principal` may look people up in `organizationId`: People is on there and the
31
-
* directory is open to them. Asked when listing tools, so a client whose organization has no
32
-
* People directory, or who may not browse it, is never offered the tool. A lookup that fails hides
33
-
* the tool rather than failing the listing around it.
note: `directReports lists the first ${reports.length} of ${totalReports}; search by department or title to find the others.`,
111
-
}
112
-
: {}),
113
-
},
114
-
}
115
-
}
116
-
117
29
server.registerTool(
118
30
'search_people',
119
31
{
120
32
title: 'Search people',
121
33
description:
122
34
'Look up people in this organization’s directory by name, email, title, department, or location. Returns each person’s title, department, location, email, and manager. When exactly one person matches, or with a personId, returns that person with managerChain (direct manager first) and directReports. Covers only this organization’s people; use search for customers, vendors, and other outside contacts.',
0 commit comments