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
Copy file name to clipboardExpand all lines: services/platform/convex/agent_tools/documents/document_list_tool.ts
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -97,11 +97,14 @@ USE THIS TOOL TO:
97
97
98
98
DO NOT USE THIS TOOL FOR:
99
99
• Semantic/content search — use rag_search instead
100
-
• Reading indexed document content — use document_retrieve with the document ID instead
101
-
• Extracting data from uploaded files — use pdf, docx, txt, excel, image, or pptx tools instead
100
+
• Reading indexed document content — use document_retrieve with the document ID (id) instead
101
+
• Extracting data from uploaded files — use pdf, docx, txt, excel, image, or pptx tools with the file ID (fileId) instead
102
102
103
103
RESPONSE FIELDS:
104
-
• documents: Array of {id, title, extension, folderPath, teamId, createdAt (Unix ms UTC), sizeBytes}
104
+
• documents: Array of {id, fileId, title, extension, folderPath, teamId, createdAt (Unix ms UTC), sizeBytes}
105
+
- id: The document ID (Convex record ID). Use with document_retrieve to read indexed content.
106
+
- fileId: The storage file ID. Use with file extraction tools (pdf, docx, txt, excel, image, pptx) and any tool that operates on stored files.
107
+
- IMPORTANT: id and fileId are DIFFERENT identifiers for different purposes. File extraction tools (pdf, docx, excel, image, etc.) require fileId, NOT id. document_retrieve requires id, NOT fileId.
105
108
• totalCount: Total matching documents (number), or null if the scan limit was reached and the true count is unknown — this does NOT mean zero results.
Copy file name to clipboardExpand all lines: services/platform/convex/agent_tools/integrations/create_bound_integration_tool.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ export function createBoundIntegrationTool(
100
100
requiresApproval: true,
101
101
approvalId: result.approvalId,
102
102
approvalCreated: true,
103
-
approvalMessage: `APPROVAL CREATED SUCCESSFULLY: An approval card (ID: ${result.approvalId}) has been created for "${result.operationTitle||args.operation}" on ${integrationName}. The user must approve or reject this operation in the chat UI before it will be executed.`,
103
+
approvalMessage: `APPROVAL CREATED SUCCESSFULLY: An approval card (ID: ${result.approvalId}) has been created below your message for "${result.operationTitle||args.operation}" on ${integrationName}. The user must approve or reject this operation before it will be executed.`,
Copy file name to clipboardExpand all lines: services/platform/convex/agent_tools/integrations/integration_tool.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ Steps:
49
49
1. First call integration_introspect(operation="xxx") to get required parameters
50
50
2. Then call this tool with ALL required params filled in
51
51
52
-
Write operations create approval cards. Use integration_batch for multiple parallel reads.`,
52
+
Write operations create approval cards below your message. Use integration_batch for multiple parallel reads.`,
53
53
54
54
args: integrationArgs,
55
55
@@ -122,7 +122,7 @@ Write operations create approval cards. Use integration_batch for multiple paral
122
122
requiresApproval: true,
123
123
approvalId: approvalResult.approvalId,
124
124
approvalCreated: true,
125
-
approvalMessage: `APPROVAL CREATED SUCCESSFULLY: An approval card (ID: ${approvalResult.approvalId}) has been created for "${approvalResult.operationTitle||args.operation}" on ${args.integrationName}. The user must approve or reject this operation in the chat UI before it will be executed.`,
125
+
approvalMessage: `APPROVAL CREATED SUCCESSFULLY: An approval card (ID: ${approvalResult.approvalId}) has been created below your message for "${approvalResult.operationTitle||args.operation}" on ${args.integrationName}. The user must approve or reject this operation before it will be executed.`,
Copy file name to clipboardExpand all lines: services/platform/convex/agent_tools/workflows/create_bound_workflow_tool.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -152,8 +152,8 @@ export function createBoundWorkflowTool(
152
152
requiresApproval: true,
153
153
approvalId,
154
154
approvalCreated: true,
155
-
approvalMessage: `APPROVAL CREATED SUCCESSFULLY: An approval card (ID: ${approvalId}) has been created to run workflow "${resolvedWf.name}". The user must approve this in the chat UI before execution begins.`,
156
-
message: `Workflow "${resolvedWf.name}" is ready to run. An approval card has been created. The workflow will start once the user approves it.`,
155
+
approvalMessage: `APPROVAL CREATED SUCCESSFULLY: An approval card (ID: ${approvalId}) has been created below your message to run workflow "${resolvedWf.name}". The user must approve this before execution begins.`,
156
+
message: `Workflow "${resolvedWf.name}" is ready to run. An approval card has been created below. The workflow will start once the user approves it.`,
0 commit comments