grf_add
Add a Git repository as a reference repo for AI assistants by providing its URL, branch, and optional shallow clone depth.
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": {
"url": "<url>"
},
"name": "grf_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Git 仓库 URL(支持 HTTPS 和 SSH 格式) | |
| name | No | 自定义仓库名称 | |
| depth | No | 浅克隆深度(默认: 1) | |
| branch | No | 指定分支 | |
| shallow | No | 是否浅克隆(默认: true) |