@@ -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,29 @@ 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+ } ,
6071 {
6172 id : 'model' ,
6273 title : 'Model' ,
6374 type : 'short-input' ,
6475 placeholder : 'Auto-selection by default' ,
6576 condition : { field : 'operation' , value : 'cursor_launch_agent' } ,
77+ mode : 'advanced' ,
6678 } ,
6779 {
6880 id : 'branchName' ,
6981 title : 'Branch Name' ,
7082 type : 'short-input' ,
7183 placeholder : 'Custom branch name (optional)' ,
7284 condition : { field : 'operation' , value : 'cursor_launch_agent' } ,
85+ mode : 'advanced' ,
7386 } ,
7487 {
7588 id : 'autoCreatePr' ,
@@ -82,12 +95,14 @@ export const CursorBlock: BlockConfig<CursorResponse> = {
8295 title : 'Open as Cursor GitHub App' ,
8396 type : 'switch' ,
8497 condition : { field : 'operation' , value : 'cursor_launch_agent' } ,
98+ mode : 'advanced' ,
8599 } ,
86100 {
87101 id : 'skipReviewerRequest' ,
88102 title : 'Skip Reviewer Request' ,
89103 type : 'switch' ,
90104 condition : { field : 'operation' , value : 'cursor_launch_agent' } ,
105+ mode : 'advanced' ,
91106 } ,
92107 {
93108 id : 'agentId' ,
@@ -102,10 +117,20 @@ export const CursorBlock: BlockConfig<CursorResponse> = {
102117 'cursor_add_followup' ,
103118 'cursor_stop_agent' ,
104119 'cursor_delete_agent' ,
120+ 'cursor_list_artifacts' ,
121+ 'cursor_download_artifact' ,
105122 ] ,
106123 } ,
107124 required : true ,
108125 } ,
126+ {
127+ id : 'path' ,
128+ title : 'Artifact Path' ,
129+ type : 'short-input' ,
130+ placeholder : '/opt/cursor/artifacts/screenshot.png' ,
131+ condition : { field : 'operation' , value : 'cursor_download_artifact' } ,
132+ required : true ,
133+ } ,
109134 {
110135 id : 'followupPromptText' ,
111136 title : 'Follow-up Prompt' ,
@@ -114,19 +139,29 @@ export const CursorBlock: BlockConfig<CursorResponse> = {
114139 condition : { field : 'operation' , value : 'cursor_add_followup' } ,
115140 required : true ,
116141 } ,
142+ {
143+ id : 'prUrl' ,
144+ title : 'PR URL Filter' ,
145+ type : 'short-input' ,
146+ placeholder : 'Filter by pull request URL (optional)' ,
147+ condition : { field : 'operation' , value : 'cursor_list_agents' } ,
148+ mode : 'advanced' ,
149+ } ,
117150 {
118151 id : 'limit' ,
119152 title : 'Limit' ,
120153 type : 'short-input' ,
121154 placeholder : '20 (default, max 100)' ,
122155 condition : { field : 'operation' , value : 'cursor_list_agents' } ,
156+ mode : 'advanced' ,
123157 } ,
124158 {
125159 id : 'cursor' ,
126160 title : 'Pagination Cursor' ,
127161 type : 'short-input' ,
128162 placeholder : 'Cursor from previous response' ,
129163 condition : { field : 'operation' , value : 'cursor_list_agents' } ,
164+ mode : 'advanced' ,
130165 } ,
131166 {
132167 id : 'apiKey' ,
@@ -146,6 +181,8 @@ export const CursorBlock: BlockConfig<CursorResponse> = {
146181 'cursor_add_followup' ,
147182 'cursor_stop_agent' ,
148183 'cursor_delete_agent' ,
184+ 'cursor_list_artifacts' ,
185+ 'cursor_download_artifact' ,
149186 ] ,
150187 config : {
151188 tool : ( params ) => params . operation || 'cursor_launch_agent' ,
@@ -157,15 +194,20 @@ export const CursorBlock: BlockConfig<CursorResponse> = {
157194 ref : { type : 'string' , description : 'Branch, tag, or commit reference' } ,
158195 promptText : { type : 'string' , description : 'Instruction text for the agent' } ,
159196 followupPromptText : { type : 'string' , description : 'Follow-up instruction text for the agent' } ,
160- promptImages : { type : 'string' , description : 'JSON array of image objects' } ,
197+ promptImages : {
198+ type : 'string' ,
199+ description : 'JSON array of image objects with base64 data and dimensions' ,
200+ } ,
161201 model : { type : 'string' , description : 'Model to use (empty for auto-selection)' } ,
162202 branchName : { type : 'string' , description : 'Custom branch name' } ,
163203 autoCreatePr : { type : 'boolean' , description : 'Auto-create PR when done' } ,
164204 openAsCursorGithubApp : { type : 'boolean' , description : 'Open PR as Cursor GitHub App' } ,
165205 skipReviewerRequest : { type : 'boolean' , description : 'Skip reviewer request' } ,
166206 agentId : { type : 'string' , description : 'Agent identifier' } ,
207+ prUrl : { type : 'string' , description : 'Filter agents by pull request URL' } ,
167208 limit : { type : 'number' , description : 'Number of results to return' } ,
168209 cursor : { type : 'string' , description : 'Pagination cursor' } ,
210+ path : { type : 'string' , description : 'Absolute path of the artifact to download' } ,
169211 apiKey : { type : 'string' , description : 'Cursor API key' } ,
170212 } ,
171213 outputs : {
@@ -192,6 +234,8 @@ export const CursorV2Block: BlockConfig<CursorResponse> = {
192234 'cursor_add_followup_v2' ,
193235 'cursor_stop_agent_v2' ,
194236 'cursor_delete_agent_v2' ,
237+ 'cursor_list_artifacts_v2' ,
238+ 'cursor_download_artifact_v2' ,
195239 ] ,
196240 config : {
197241 tool : createVersionedToolSelector ( {
@@ -213,5 +257,7 @@ export const CursorV2Block: BlockConfig<CursorResponse> = {
213257 agents : { type : 'json' , description : 'Array of agent objects (list operation)' } ,
214258 nextCursor : { type : 'string' , description : 'Pagination cursor (list operation)' } ,
215259 messages : { type : 'json' , description : 'Conversation messages (get conversation operation)' } ,
260+ artifacts : { type : 'json' , description : 'List of artifact files (list artifacts operation)' } ,
261+ file : { type : 'file' , description : 'Downloaded artifact file (download artifact operation)' } ,
216262 } ,
217263}
0 commit comments