PromptHub: update a repo (full replace)
prompthub_update_repoReplaces all content of one of your own repositories with a complete provided body, deleting any omitted files. Use it to overwrite a repository, not to merge partial changes.
Instructions
Replace ALL content of one of YOUR repositories with the provided body. This is a FULL REPLACE, not a partial merge — any file you omit is DELETED. To change part of a repo, first call prompthub_get_repo, edit the returned fields, then send the COMPLETE set back (map the returned name to repoName; drop read-only fields like counts/createdAt; resend every file). The owner must be your own handle, otherwise the server returns not found.
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>",
"name": "<name>",
"repoName": "<repoName>",
"description": "<description>",
"visibility": "<visibility>",
"topics": "<topics>",
"readme": "<readme>",
"files": "<files>"
},
"name": "prompthub_update_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The repo to replace. | |
| files | Yes | At least one file. Call prompthub_describe_file_format for the exact content shapes. | |
| owner | Yes | Your own handle. | |
| readme | Yes | Markdown README (may be empty). | |
| topics | Yes | Up to 8 topic tags. | |
| repoName | Yes | Repo name slug: lowercase letters/digits with single hyphens (e.g. 'code-review'). No spaces/uppercase/underscores. | |
| visibility | Yes | ||
| description | Yes | Short description, ≤500 chars (may be empty). |