Gitea: Search code
gitea_search_codeSearch code across a Gitea instance or narrow results to a specific repository using owner and repo, with pagination for reviewing matches.
Instructions
[UNIFIED] Search code inside Gitea. When owner and repo are set, the search scopes to that repository; otherwise it's an instance-wide code search. Returns Gitea's raw {ok, data: [...]} shape.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"keyword": "<keyword>"
},
"name": "gitea_search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| repo | No | ||
| site | Yes | ||
| owner | No | ||
| keyword | Yes | ||
| per_page | No |