Read the published source of a website, app, agent, or skill
get_sourceRead what is published: the files of a website, app, agent, or skill's active release. Without path it lists them; with path it returns one file's text. Pass release, a version from list_releases, to read an earlier release instead; rollback_service restores a website, app, or agent to it; publish a skill's files again to roll it back. Read before you change something someone else built, so your publish carries their work forward rather than replacing it with yours. Binary files are listed and not returned. Pass git: true instead, when you can run git with network access, to get a read-only Git URL for the release's commit with the commands to clone it. Prefer it to reading files one at a time. git needs key_sha256, the SHA-256 of a new Git key on your machine for this clone, made as create_push describes; the URL carries no credential, works for an hour, and cannot push. git cannot be combined with path. Requires connecting a Valet account.
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": {
"name": "<name>"
},
"name": "get_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| git | No | Return a read-only Git URL for the release's commit and the commands to clone it, instead of file contents. Prefer it when you can run git with network access. Requires key_sha256. The URL carries no credential and works for an hour. Not allowed with path. | |
| name | Yes | The website's, app's, agent's, or skill's name, as list_services shows it: the one to read. | |
| path | No | A file to read. Omit to list the files. | |
| release | No | A release version from list_releases. Omit to read the active release. | |
| org_name | No | The Valet organization it belongs to. Omit to use the organization the account joined first. | |
| key_sha256 | No | With git: names the Git key the clone accepts, as the SHA-256 of a new key you generated on your machine for this clone, made as create_push describes. The key itself is never sent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | Name of the Valet organization the call acted in. | |
| url | No | With git: a read-only Git clone URL for the release. It carries no credential: the clone proves possession of your key. | |
| name | Yes | Name of the website, app, agent, or skill. | |
| path | No | The path of the file read, normalized. Set only when you gave path. | |
| files | No | The release's files with their sizes. Set when you gave no path and no git; absent otherwise. | |
| commit | No | With git: the release's commit, which the commands check out. | |
| content | No | The file's text. Set only when you gave path; absent for an empty file. | |
| release | Yes | Version of the release the answer was read at: the one you asked for, or the active release. | |
| commands | No | With git: shell commands to run in order. They clone the repository with your key, then check out commit. | |
| truncated | No | True when the listing stopped at 500 files and more exist. Absent otherwise. | |
| expires_at | No | With git: when the URL stops working, as an RFC 3339 time. |