@@ -422,48 +422,53 @@ func (t *ShellTool) Tools(context.Context) ([]tools.Tool, error) {
422422
423423 return []tools.Tool {
424424 {
425- Name : ToolNameShell ,
426- Category : "shell" ,
427- Description : shellDesc ,
428- Parameters : tools .MustSchemaFor [RunShellArgs ](),
429- OutputSchema : tools .MustSchemaFor [string ](),
430- Handler : tools .NewHandler (t .handler .RunShell ),
431- Annotations : tools.ToolAnnotations {Title : "Shell" },
425+ Name : ToolNameShell ,
426+ Category : "shell" ,
427+ Description : shellDesc ,
428+ Parameters : tools .MustSchemaFor [RunShellArgs ](),
429+ OutputSchema : tools .MustSchemaFor [string ](),
430+ Handler : tools .NewHandler (t .handler .RunShell ),
431+ Annotations : tools.ToolAnnotations {Title : "Shell" },
432+ WithDescription : true ,
432433 },
433434 {
434- Name : ToolNameRunShellBackground ,
435- Category : "shell" ,
436- Description : `Starts a shell command in the background and returns immediately with a job ID. Use this for long-running processes like servers, watches, or any command that should run while other tasks are performed.` ,
437- Parameters : tools .MustSchemaFor [RunShellBackgroundArgs ](),
438- OutputSchema : tools .MustSchemaFor [string ](),
439- Handler : tools .NewHandler (t .handler .RunShellBackground ),
440- Annotations : tools.ToolAnnotations {Title : "Background Job" },
435+ Name : ToolNameRunShellBackground ,
436+ Category : "shell" ,
437+ Description : `Starts a shell command in the background and returns immediately with a job ID. Use this for long-running processes like servers, watches, or any command that should run while other tasks are performed.` ,
438+ Parameters : tools .MustSchemaFor [RunShellBackgroundArgs ](),
439+ OutputSchema : tools .MustSchemaFor [string ](),
440+ Handler : tools .NewHandler (t .handler .RunShellBackground ),
441+ Annotations : tools.ToolAnnotations {Title : "Background Job" },
442+ WithDescription : true ,
441443 },
442444 {
443- Name : ToolNameListBackgroundJobs ,
444- Category : "shell" ,
445- Description : `Lists all background jobs with their status, runtime, and other information.` ,
446- OutputSchema : tools .MustSchemaFor [string ](),
447- Handler : tools .NewHandler (t .handler .ListBackgroundJobs ),
448- Annotations : tools.ToolAnnotations {Title : "List Background Jobs" , ReadOnlyHint : true },
445+ Name : ToolNameListBackgroundJobs ,
446+ Category : "shell" ,
447+ Description : `Lists all background jobs with their status, runtime, and other information.` ,
448+ OutputSchema : tools .MustSchemaFor [string ](),
449+ Handler : tools .NewHandler (t .handler .ListBackgroundJobs ),
450+ Annotations : tools.ToolAnnotations {Title : "List Background Jobs" , ReadOnlyHint : true },
451+ WithDescription : true ,
449452 },
450453 {
451- Name : ToolNameViewBackgroundJob ,
452- Category : "shell" ,
453- Description : `Views the output and status of a specific background job by job ID.` ,
454- Parameters : tools .MustSchemaFor [ViewBackgroundJobArgs ](),
455- OutputSchema : tools .MustSchemaFor [string ](),
456- Handler : tools .NewHandler (t .handler .ViewBackgroundJob ),
457- Annotations : tools.ToolAnnotations {Title : "View Background Job Output" , ReadOnlyHint : true },
454+ Name : ToolNameViewBackgroundJob ,
455+ Category : "shell" ,
456+ Description : `Views the output and status of a specific background job by job ID.` ,
457+ Parameters : tools .MustSchemaFor [ViewBackgroundJobArgs ](),
458+ OutputSchema : tools .MustSchemaFor [string ](),
459+ Handler : tools .NewHandler (t .handler .ViewBackgroundJob ),
460+ Annotations : tools.ToolAnnotations {Title : "View Background Job Output" , ReadOnlyHint : true },
461+ WithDescription : true ,
458462 },
459463 {
460- Name : ToolNameStopBackgroundJob ,
461- Category : "shell" ,
462- Description : `Stops a running background job by job ID. The process and all its child processes will be terminated.` ,
463- Parameters : tools .MustSchemaFor [StopBackgroundJobArgs ](),
464- OutputSchema : tools .MustSchemaFor [string ](),
465- Handler : tools .NewHandler (t .handler .StopBackgroundJob ),
466- Annotations : tools.ToolAnnotations {Title : "Stop Background Job" },
464+ Name : ToolNameStopBackgroundJob ,
465+ Category : "shell" ,
466+ Description : `Stops a running background job by job ID. The process and all its child processes will be terminated.` ,
467+ Parameters : tools .MustSchemaFor [StopBackgroundJobArgs ](),
468+ OutputSchema : tools .MustSchemaFor [string ](),
469+ Handler : tools .NewHandler (t .handler .StopBackgroundJob ),
470+ Annotations : tools.ToolAnnotations {Title : "Stop Background Job" },
471+ WithDescription : true ,
467472 },
468473 }, nil
469474}
0 commit comments