@@ -2401,6 +2401,38 @@ async function handleJobsPrepareEasyApply(args: ToolArgs): Promise<ToolResult> {
24012401 }
24022402}
24032403
2404+ async function handleGroupsList ( args : ToolArgs ) : Promise < ToolResult > {
2405+ const runtime = createRuntime ( args ) ;
2406+
2407+ try {
2408+ const profileName = readString ( args , "profileName" , "default" ) ;
2409+ const limit = readPositiveNumber ( args , "limit" , 10 ) ;
2410+
2411+ runtime . logger . log ( "info" , "mcp.groups.list.start" , {
2412+ profileName,
2413+ limit,
2414+ } ) ;
2415+
2416+ const result = await runtime . groups . listGroups ( {
2417+ profileName,
2418+ limit,
2419+ } ) ;
2420+
2421+ runtime . logger . log ( "info" , "mcp.groups.list.done" , {
2422+ profileName,
2423+ count : result . count ,
2424+ } ) ;
2425+
2426+ return toToolResult ( {
2427+ run_id : runtime . runId ,
2428+ profile_name : profileName ,
2429+ ...result ,
2430+ } ) ;
2431+ } finally {
2432+ runtime . close ( ) ;
2433+ }
2434+ }
2435+
24042436async function handleGroupsSearch ( args : ToolArgs ) : Promise < ToolResult > {
24052437 const runtime = createRuntime ( args ) ;
24062438
@@ -8026,6 +8058,7 @@ const TOOL_HANDLERS: Record<string, ToolHandler> = {
80268058 [ LINKEDIN_JOBS_ALERTS_CREATE_TOOL ] : handleJobsAlertsCreate ,
80278059 [ LINKEDIN_JOBS_ALERTS_REMOVE_TOOL ] : handleJobsAlertsRemove ,
80288060 [ LINKEDIN_JOBS_PREPARE_EASY_APPLY_TOOL ] : handleJobsPrepareEasyApply ,
8061+ [ LINKEDIN_GROUPS_LIST_TOOL ] : handleGroupsList ,
80298062 [ LINKEDIN_GROUPS_SEARCH_TOOL ] : handleGroupsSearch ,
80308063 [ LINKEDIN_GROUPS_VIEW_TOOL ] : handleGroupsView ,
80318064 [ LINKEDIN_GROUPS_PREPARE_CREATE_TOOL ] : handleGroupsPrepareCreate ,
0 commit comments