Skip to content

Commit e6a7d87

Browse files
committed
improvement(jira): add pagination fields to search_users response
1 parent 5cb73ae commit e6a7d87

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

apps/sim/tools/jira/search_users.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ export const jiraSearchUsersTool: ToolConfig<JiraSearchUsersParams, JiraSearchUs
133133
self: user.self ?? null,
134134
})),
135135
total: users.length,
136+
startAt: params?.startAt ?? 0,
137+
maxResults: params?.maxResults ?? 50,
136138
},
137139
}
138140
},
@@ -154,6 +156,11 @@ export const jiraSearchUsersTool: ToolConfig<JiraSearchUsersParams, JiraSearchUs
154156
},
155157
},
156158
},
157-
total: { type: 'number', description: 'Total number of users returned' },
159+
total: {
160+
type: 'number',
161+
description: 'Number of users returned in this page (may be less than total matches)',
162+
},
163+
startAt: { type: 'number', description: 'Pagination start index' },
164+
maxResults: { type: 'number', description: 'Maximum results per page' },
158165
},
159166
}

apps/sim/tools/jira/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,8 @@ export interface JiraSearchUsersResponse extends ToolResponse {
15721572
self?: string | null
15731573
}>
15741574
total: number
1575+
startAt: number
1576+
maxResults: number
15751577
}
15761578
}
15771579

0 commit comments

Comments
 (0)