Implementation
gradeNot graded
gradeNot graded
list_reposAnswer
List repositories accessible to the signed-in user.
View tool JSON
{
"name": "list_repos",
"kind": "answer",
"impl": "imperative",
"description": "List repositories accessible to the signed-in user.",
"inputSchema": {
"type": "object",
"properties": {}
}
}get_repoAnswer
Get details of a repository.
View tool JSON
{
"name": "get_repo",
"kind": "answer",
"impl": "imperative",
"description": "Get details of a repository.",
"inputSchema": {
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "repository owner"
},
"repo": {
"type": "string",
"description": "repository name"
}
},
"required": [
"owner",
"repo"
]
}
}list_issuesAnswer
List issues in a repository, optionally filtered by state.
View tool JSON
{
"name": "list_issues",
"kind": "answer",
"impl": "imperative",
"description": "List issues in a repository, optionally filtered by state.",
"inputSchema": {
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "repository owner"
},
"repo": {
"type": "string",
"description": "repository name"
},
"state": {
"type": "string",
"enum": [
"open",
"closed",
"all"
],
"description": "default open"
}
},
"required": [
"owner",
"repo"
]
}
}get_issueAnswer
Get a single issue with its comments.
View tool JSON
{
"name": "get_issue",
"kind": "answer",
"impl": "imperative",
"description": "Get a single issue with its comments.",
"inputSchema": {
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "repository owner"
},
"repo": {
"type": "string",
"description": "repository name"
},
"number": {
"type": "integer",
"description": "issue number"
}
},
"required": [
"owner",
"repo",
"number"
]
}
}create_issueAction
Create an issue in a repository.
View tool JSON
{
"name": "create_issue",
"kind": "act",
"impl": "imperative",
"description": "Create an issue in a repository.",
"inputSchema": {
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "repository owner"
},
"repo": {
"type": "string",
"description": "repository name"
},
"title": {
"type": "string",
"description": "issue title"
},
"body": {
"type": "string",
"description": "issue body (Markdown)"
}
},
"required": [
"owner",
"repo",
"title"
]
}
}list_pullsAnswer
List pull requests in a repository.
View tool JSON
{
"name": "list_pulls",
"kind": "answer",
"impl": "imperative",
"description": "List pull requests in a repository.",
"inputSchema": {
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "repository owner"
},
"repo": {
"type": "string",
"description": "repository name"
},
"state": {
"type": "string",
"enum": [
"open",
"merged",
"closed",
"all"
],
"description": "default open"
}
},
"required": [
"owner",
"repo"
]
}
}create_commentSensitive Action
Add a comment to an issue or pull request.
View tool JSON
{
"name": "create_comment",
"kind": "transact",
"impl": "imperative",
"description": "Add a comment to an issue or pull request.",
"inputSchema": {
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "repository owner"
},
"repo": {
"type": "string",
"description": "repository name"
},
"number": {
"type": "integer",
"description": "issue or pull request number"
},
"body": {
"type": "string",
"description": "comment body (Markdown)"
},
"kind": {
"type": "string",
"enum": [
"issue",
"pull"
],
"description": "default issue"
}
},
"required": [
"owner",
"repo",
"number",
"body"
]
}
}get_fileAnswer
Read a file from a repository (default branch when ref is omitted).
View tool JSON
{
"name": "get_file",
"kind": "answer",
"impl": "imperative",
"description": "Read a file from a repository (default branch when ref is omitted).",
"inputSchema": {
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "repository owner"
},
"repo": {
"type": "string",
"description": "repository name"
},
"path": {
"type": "string",
"description": "file path relative to the repository root"
},
"ref": {
"type": "string",
"description": "branch, tag or commit (default: repository default branch)"
}
},
"required": [
"owner",
"repo",
"path"
]
}
}search_codeAnswer
Search code within a repository.
View tool JSON
{
"name": "search_code",
"kind": "answer",
"impl": "imperative",
"description": "Search code within a repository.",
"inputSchema": {
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "repository owner"
},
"repo": {
"type": "string",
"description": "repository name"
},
"query": {
"type": "string",
"description": "search query"
},
"ref": {
"type": "string",
"description": "branch, tag or commit (default branch when omitted)"
}
},
"required": [
"owner",
"repo",
"query"
]
}
}