@@ -525,7 +525,9 @@ export const MondayBlock: BlockConfig = {
525525 const baseParams : Record < string , unknown > = {
526526 oauthCredential : params . oauthCredential ,
527527 }
528- const op = typeof params . operation === 'string' ? params . operation . trim ( ) : 'list_boards'
528+ /** Agent tool calls carry the stored operation only on `context`, not in `params`. */
529+ const rawOperation = params . operation ?? context ?. operation
530+ const op = typeof rawOperation === 'string' ? rawOperation . trim ( ) : 'list_boards'
529531
530532 switch ( op ) {
531533 case 'list_boards' :
@@ -550,7 +552,7 @@ export const MondayBlock: BlockConfig = {
550552 return {
551553 ...baseParams ,
552554 boardId : params . boardId ,
553- columns : params . searchColumns ,
555+ columns : params . searchColumns || toolCallArg ( context , params . columns ) ,
554556 limit : params . limit ? Number ( params . limit ) : undefined ,
555557 cursor : params . cursor || undefined ,
556558 }
@@ -575,7 +577,7 @@ export const MondayBlock: BlockConfig = {
575577 boardId : params . boardId ,
576578 itemId : params . itemId ,
577579 columnId : params . columnId ,
578- value : params . columnValue ,
580+ value : params . columnValue ?? toolCallArg ( context , params . value ) ,
579581 createLabelsIfMissing : Boolean ( params . createLabelsIfMissing ) ,
580582 }
581583 case 'duplicate_item' :
@@ -590,7 +592,8 @@ export const MondayBlock: BlockConfig = {
590592 ...baseParams ,
591593 boardName : params . boardName ,
592594 boardKind : params . boardKind || 'public' ,
593- description : params . boardDescription || undefined ,
595+ description :
596+ params . boardDescription || toolCallArg ( context , params . description ) || undefined ,
594597 workspaceId : params . workspaceId || undefined ,
595598 folderId : params . folderId || undefined ,
596599 }
@@ -626,7 +629,7 @@ export const MondayBlock: BlockConfig = {
626629 return {
627630 ...baseParams ,
628631 itemId : params . itemId ,
629- body : params . updateBody ,
632+ body : params . updateBody || toolCallArg ( context , params . body ) ,
630633 }
631634 case 'create_group' :
632635 return {
0 commit comments