@@ -31,6 +31,8 @@ export const CursorBlock: BlockConfig<CursorResponse> = {
3131 { label : 'List Agents' , id : 'cursor_list_agents' } ,
3232 { label : 'Stop Agent' , id : 'cursor_stop_agent' } ,
3333 { label : 'Delete Agent' , id : 'cursor_delete_agent' } ,
34+ { label : 'List Artifacts' , id : 'cursor_list_artifacts' } ,
35+ { label : 'Download Artifact' , id : 'cursor_download_artifact' } ,
3436 ] ,
3537 value : ( ) => 'cursor_launch_agent' ,
3638 } ,
@@ -48,6 +50,7 @@ export const CursorBlock: BlockConfig<CursorResponse> = {
4850 type : 'short-input' ,
4951 placeholder : 'main (optional)' ,
5052 condition : { field : 'operation' , value : 'cursor_launch_agent' } ,
53+ mode : 'advanced' ,
5154 } ,
5255 {
5356 id : 'promptText' ,
@@ -57,19 +60,35 @@ export const CursorBlock: BlockConfig<CursorResponse> = {
5760 condition : { field : 'operation' , value : 'cursor_launch_agent' } ,
5861 required : true ,
5962 } ,
63+ {
64+ id : 'promptImages' ,
65+ title : 'Prompt Images' ,
66+ type : 'long-input' ,
67+ placeholder : '[{"data": "base64...", "dimension": {"width": 1024, "height": 768}}]' ,
68+ condition : { field : 'operation' , value : [ 'cursor_launch_agent' , 'cursor_add_followup' ] } ,
69+ mode : 'advanced' ,
70+ wandConfig : {
71+ generationType : 'json-array' ,
72+ placeholder : 'Describe the images to include with the prompt' ,
73+ prompt :
74+ 'Generate a JSON array of image objects with base64 data and dimensions. Return ONLY the JSON array - no explanations, no extra text.' ,
75+ } ,
76+ } ,
6077 {
6178 id : 'model' ,
6279 title : 'Model' ,
6380 type : 'short-input' ,
6481 placeholder : 'Auto-selection by default' ,
6582 condition : { field : 'operation' , value : 'cursor_launch_agent' } ,
83+ mode : 'advanced' ,
6684 } ,
6785 {
6886 id : 'branchName' ,
6987 title : 'Branch Name' ,
7088 type : 'short-input' ,
7189 placeholder : 'Custom branch name (optional)' ,
7290 condition : { field : 'operation' , value : 'cursor_launch_agent' } ,
91+ mode : 'advanced' ,
7392 } ,
7493 {
7594 id : 'autoCreatePr' ,
@@ -82,12 +101,14 @@ export const CursorBlock: BlockConfig<CursorResponse> = {
82101 title : 'Open as Cursor GitHub App' ,
83102 type : 'switch' ,
84103 condition : { field : 'operation' , value : 'cursor_launch_agent' } ,
104+ mode : 'advanced' ,
85105 } ,
86106 {
87107 id : 'skipReviewerRequest' ,
88108 title : 'Skip Reviewer Request' ,
89109 type : 'switch' ,
90110 condition : { field : 'operation' , value : 'cursor_launch_agent' } ,
111+ mode : 'advanced' ,
91112 } ,
92113 {
93114 id : 'agentId' ,
@@ -102,10 +123,20 @@ export const CursorBlock: BlockConfig<CursorResponse> = {
102123 'cursor_add_followup' ,
103124 'cursor_stop_agent' ,
104125 'cursor_delete_agent' ,
126+ 'cursor_list_artifacts' ,
127+ 'cursor_download_artifact' ,
105128 ] ,
106129 } ,
107130 required : true ,
108131 } ,
132+ {
133+ id : 'path' ,
134+ title : 'Artifact Path' ,
135+ type : 'short-input' ,
136+ placeholder : '/opt/cursor/artifacts/screenshot.png' ,
137+ condition : { field : 'operation' , value : 'cursor_download_artifact' } ,
138+ required : true ,
139+ } ,
109140 {
110141 id : 'followupPromptText' ,
111142 title : 'Follow-up Prompt' ,
@@ -114,19 +145,29 @@ export const CursorBlock: BlockConfig<CursorResponse> = {
114145 condition : { field : 'operation' , value : 'cursor_add_followup' } ,
115146 required : true ,
116147 } ,
148+ {
149+ id : 'prUrl' ,
150+ title : 'PR URL Filter' ,
151+ type : 'short-input' ,
152+ placeholder : 'Filter by pull request URL (optional)' ,
153+ condition : { field : 'operation' , value : 'cursor_list_agents' } ,
154+ mode : 'advanced' ,
155+ } ,
117156 {
118157 id : 'limit' ,
119158 title : 'Limit' ,
120159 type : 'short-input' ,
121160 placeholder : '20 (default, max 100)' ,
122161 condition : { field : 'operation' , value : 'cursor_list_agents' } ,
162+ mode : 'advanced' ,
123163 } ,
124164 {
125165 id : 'cursor' ,
126166 title : 'Pagination Cursor' ,
127167 type : 'short-input' ,
128168 placeholder : 'Cursor from previous response' ,
129169 condition : { field : 'operation' , value : 'cursor_list_agents' } ,
170+ mode : 'advanced' ,
130171 } ,
131172 {
132173 id : 'apiKey' ,
@@ -146,6 +187,8 @@ export const CursorBlock: BlockConfig<CursorResponse> = {
146187 'cursor_add_followup' ,
147188 'cursor_stop_agent' ,
148189 'cursor_delete_agent' ,
190+ 'cursor_list_artifacts' ,
191+ 'cursor_download_artifact' ,
149192 ] ,
150193 config : {
151194 tool : ( params ) => params . operation || 'cursor_launch_agent' ,
@@ -157,15 +200,20 @@ export const CursorBlock: BlockConfig<CursorResponse> = {
157200 ref : { type : 'string' , description : 'Branch, tag, or commit reference' } ,
158201 promptText : { type : 'string' , description : 'Instruction text for the agent' } ,
159202 followupPromptText : { type : 'string' , description : 'Follow-up instruction text for the agent' } ,
160- promptImages : { type : 'string' , description : 'JSON array of image objects' } ,
203+ promptImages : {
204+ type : 'string' ,
205+ description : 'JSON array of image objects with base64 data and dimensions' ,
206+ } ,
161207 model : { type : 'string' , description : 'Model to use (empty for auto-selection)' } ,
162208 branchName : { type : 'string' , description : 'Custom branch name' } ,
163209 autoCreatePr : { type : 'boolean' , description : 'Auto-create PR when done' } ,
164210 openAsCursorGithubApp : { type : 'boolean' , description : 'Open PR as Cursor GitHub App' } ,
165211 skipReviewerRequest : { type : 'boolean' , description : 'Skip reviewer request' } ,
166212 agentId : { type : 'string' , description : 'Agent identifier' } ,
213+ prUrl : { type : 'string' , description : 'Filter agents by pull request URL' } ,
167214 limit : { type : 'number' , description : 'Number of results to return' } ,
168215 cursor : { type : 'string' , description : 'Pagination cursor' } ,
216+ path : { type : 'string' , description : 'Absolute path of the artifact to download' } ,
169217 apiKey : { type : 'string' , description : 'Cursor API key' } ,
170218 } ,
171219 outputs : {
@@ -192,6 +240,8 @@ export const CursorV2Block: BlockConfig<CursorResponse> = {
192240 'cursor_add_followup_v2' ,
193241 'cursor_stop_agent_v2' ,
194242 'cursor_delete_agent_v2' ,
243+ 'cursor_list_artifacts_v2' ,
244+ 'cursor_download_artifact_v2' ,
195245 ] ,
196246 config : {
197247 tool : createVersionedToolSelector ( {
@@ -208,10 +258,12 @@ export const CursorV2Block: BlockConfig<CursorResponse> = {
208258 status : { type : 'string' , description : 'Agent status' } ,
209259 source : { type : 'json' , description : 'Agent source repository info' } ,
210260 target : { type : 'json' , description : 'Agent target branch/PR info' } ,
211- summary : { type : 'string' , description : 'Agent summary' } ,
261+ summary : { type : 'string' , description : 'Agent summary' , optional : true } ,
212262 createdAt : { type : 'string' , description : 'Agent creation timestamp' } ,
213263 agents : { type : 'json' , description : 'Array of agent objects (list operation)' } ,
214264 nextCursor : { type : 'string' , description : 'Pagination cursor (list operation)' } ,
215265 messages : { type : 'json' , description : 'Conversation messages (get conversation operation)' } ,
266+ artifacts : { type : 'json' , description : 'List of artifact files (list artifacts operation)' } ,
267+ file : { type : 'file' , description : 'Downloaded artifact file (download artifact operation)' } ,
216268 } ,
217269}
0 commit comments