File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 " properties" : {
99 " inputs" : {
1010 " description" : " Inputs the workflow accepts. Only used for 'run_workflow' method." ,
11+ " properties" : {},
1112 " type" : " object"
1213 },
1314 " method" : {
Original file line number Diff line number Diff line change @@ -544,6 +544,7 @@ func ActionsRunTrigger(t translations.TranslationHelperFunc) inventory.ServerToo
544544 "inputs" : {
545545 Type : "object" ,
546546 Description : "Inputs the workflow accepts. Only used for 'run_workflow' method." ,
547+ Properties : map [string ]* jsonschema.Schema {},
547548 },
548549 "run_id" : {
549550 Type : "number" ,
@@ -574,11 +575,9 @@ func ActionsRunTrigger(t translations.TranslationHelperFunc) inventory.ServerToo
574575 runID , _ := OptionalIntParam (args , "run_id" )
575576
576577 // Get optional inputs parameter
577- var inputs map [string ]any
578- if requestInputs , ok := args ["inputs" ]; ok {
579- if inputsMap , ok := requestInputs .(map [string ]any ); ok {
580- inputs = inputsMap
581- }
578+ inputs , err := OptionalParam [map [string ]any ](args , "inputs" )
579+ if err != nil {
580+ return utils .NewToolResultError (err .Error ()), nil , nil
582581 }
583582
584583 // Validate required parameters based on action type
You can’t perform that action at this time.
0 commit comments