@@ -201,10 +201,10 @@ func initPods() []api.ServerTool {
201201 Type : "string" ,
202202 Description : "Name of the Pod container to get the logs from (Optional)" ,
203203 },
204- "tailLines " : {
204+ "tail " : {
205205 Type : "integer" ,
206- Description : "Number of lines to retrieve from the end of the logs (Optional, default: 256 )" ,
207- Default : api .ToRawMessage (int64 ( 256 ) ),
206+ Description : "Number of lines to retrieve from the end of the logs (Optional, default: 100 )" ,
207+ Default : api .ToRawMessage (kubernetes . DefaultTailLines ),
208208 Minimum : ptr .To (float64 (0 )),
209209 },
210210 "previous" : {
@@ -403,7 +403,7 @@ func podsLog(params api.ToolHandlerParams) (*api.ToolCallResult, error) {
403403 previousBool = previous .(bool )
404404 }
405405 // Extract tailLines parameter
406- tailLines := params .GetArguments ()["tailLines " ]
406+ tailLines := params .GetArguments ()["tail " ]
407407 var tailLinesInt int64
408408 if tailLines != nil {
409409 // Convert to int64 - safely handle both float64 (JSON number) and int types
@@ -415,7 +415,7 @@ func podsLog(params api.ToolHandlerParams) (*api.ToolCallResult, error) {
415415 case int64 :
416416 tailLinesInt = v
417417 default :
418- return api .NewToolCallResult ("" , fmt .Errorf ("failed to parse tailLines parameter: expected integer, got %T" , tailLines )), nil
418+ return api .NewToolCallResult ("" , fmt .Errorf ("failed to parse tail parameter: expected integer, got %T" , tailLines )), nil
419419 }
420420 }
421421
0 commit comments