Save File Content
lyzr_git_save_file_contentSave a file's content to an agent's git repository. Use it to create or update files with a specified branch and commit message.
Instructions
Save (create or update) a file's content in an agent's git repo.
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": {
"agent_id": "<agent_id>",
"file_path": "<file_path>",
"content": "<content>"
},
"name": "lyzr_git_save_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Branch to save the file to | |
| content | Yes | New file content | |
| message | No | Commit message | |
| agent_id | Yes | Agent id | |
| file_path | Yes | Path to the file within the repo |