Skip to content

Commit 59efc85

Browse files
improvement(mothership): user_table speed parity — limit bounds, keyset paging, async import/delete jobs
1 parent cc56408 commit 59efc85

6 files changed

Lines changed: 951 additions & 158 deletions

File tree

apps/sim/lib/copilot/generated/tool-catalog-v1.ts

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3870,6 +3870,22 @@ export const UserTable: ToolCatalogEntry = {
38703870
type: 'object',
38713871
description: 'Arguments for the operation',
38723872
properties: {
3873+
after: {
3874+
type: 'object',
3875+
description:
3876+
"Keyset cursor for query_rows: pass the nextCursor object ({ orderKey, id }) from the previous page's response to fetch the next page on the default row order. Cannot be combined with sort (supplying both is rejected). When set, offset is ignored.",
3877+
properties: {
3878+
id: {
3879+
type: 'string',
3880+
description: 'id of the last row of the previous page (from nextCursor).',
3881+
},
3882+
orderKey: {
3883+
type: 'string',
3884+
description: 'orderKey of the last row of the previous page (from nextCursor).',
3885+
},
3886+
},
3887+
required: ['orderKey', 'id'],
3888+
},
38733889
autoRun: {
38743890
type: 'boolean',
38753891
description:
@@ -3958,7 +3974,8 @@ export const UserTable: ToolCatalogEntry = {
39583974
},
39593975
limit: {
39603976
type: 'number',
3961-
description: 'Maximum rows to return or affect (optional, default 100)',
3977+
description:
3978+
'Maximum rows to return or affect (optional; default 100, max 1000). For delete_rows_by_filter, omitting it lets matches above 1000 run as a background job.',
39623979
},
39633980
mapping: {
39643981
type: 'object',
@@ -4011,7 +4028,8 @@ export const UserTable: ToolCatalogEntry = {
40114028
},
40124029
offset: {
40134030
type: 'number',
4014-
description: 'Number of rows to skip (optional for query_rows, default 0)',
4031+
description:
4032+
'Number of rows to skip (optional for query_rows, default 0). For paging past more than a few pages, prefer the after cursor — offset re-scans every prior row.',
40154033
},
40164034
outputColumnNames: {
40174035
type: 'object',

0 commit comments

Comments
 (0)