create_file
Create a file in a Forgejo repository by providing owner, repo, filepath, content, and commit message. Optionally specify branch or set base64=true for encoded content.
Instructions
Create a file. Set base64=true when content is base64-encoded.
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": {
"owner": "<owner>",
"repo": "<repo>",
"filepath": "<filepath>",
"content": "<content>",
"message": "<message>"
},
"name": "create_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| owner | Yes | ||
| base64 | No | ||
| branch | No | ||
| content | Yes | ||
| message | Yes | ||
| filepath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||