@@ -201,10 +201,10 @@ func initPods() []api.ServerTool {
201
201
Type : "string" ,
202
202
Description : "Name of the Pod container to get the logs from (Optional)" ,
203
203
},
204
- "tailLines " : {
204
+ "tail " : {
205
205
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 ),
208
208
Minimum : ptr .To (float64 (0 )),
209
209
},
210
210
"previous" : {
@@ -403,7 +403,7 @@ func podsLog(params api.ToolHandlerParams) (*api.ToolCallResult, error) {
403
403
previousBool = previous .(bool )
404
404
}
405
405
// Extract tailLines parameter
406
- tailLines := params .GetArguments ()["tailLines " ]
406
+ tailLines := params .GetArguments ()["tail " ]
407
407
var tailLinesInt int64
408
408
if tailLines != nil {
409
409
// Convert to int64 - safely handle both float64 (JSON number) and int types
@@ -415,7 +415,7 @@ func podsLog(params api.ToolHandlerParams) (*api.ToolCallResult, error) {
415
415
case int64 :
416
416
tailLinesInt = v
417
417
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
419
419
}
420
420
}
421
421
0 commit comments