From efc5778024cc0c136a0a0c8bfc9615efa270c176 Mon Sep 17 00:00:00 2001 From: karpovantonme Date: Sat, 22 Aug 2026 23:48:47 +0300 Subject: [PATCH] Fix perPage parameter name in actions_list schema The schema declared per_page while the handler reads pagination through OptionalPaginationParams, which looks for perPage, so the value was always dropped and perPage fell back to the default 30. --- README.md | 2 +- pkg/github/__toolsnaps__/actions_list.snap | 2 +- pkg/github/actions.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9527478a0f..c7491c82ad 100644 --- a/README.md +++ b/README.md @@ -642,7 +642,7 @@ The following sets of tools are available: - `method`: The action to perform (string, required) - `owner`: Repository owner (string, required) - `page`: Page number for pagination (default: 1) (number, optional) - - `per_page`: Results per page for pagination (default: 30, max: 100) (number, optional) + - `perPage`: Results per page for pagination (default: 30, max: 100) (number, optional) - `repo`: Repository name (string, required) - `resource_id`: The unique identifier of the resource. This will vary based on the "method" provided, so ensure you provide the correct ID: - Do not provide any resource ID for 'list_workflows' method. diff --git a/pkg/github/__toolsnaps__/actions_list.snap b/pkg/github/__toolsnaps__/actions_list.snap index be97affbdb..4df628bf85 100644 --- a/pkg/github/__toolsnaps__/actions_list.snap +++ b/pkg/github/__toolsnaps__/actions_list.snap @@ -26,7 +26,7 @@ "minimum": 1, "type": "number" }, - "per_page": { + "perPage": { "description": "Results per page for pagination (default: 30, max: 100)", "maximum": 100, "minimum": 1, diff --git a/pkg/github/actions.go b/pkg/github/actions.go index 0a1db9d387..a4f93b9ba6 100644 --- a/pkg/github/actions.go +++ b/pkg/github/actions.go @@ -313,7 +313,7 @@ Use this tool to list workflows in a repository, or list workflow runs, jobs, an Description: "Page number for pagination (default: 1)", Minimum: jsonschema.Ptr(1.0), }, - "per_page": { + "perPage": { Type: "number", Description: "Results per page for pagination (default: 30, max: 100)", Minimum: jsonschema.Ptr(1.0),