project_files_list
List every deployed file in the project — path, type (static/binary/function), size, last_modified. No file bytes. Cheap tree listing for "show me what's in there" before deciding what to pull.
project_file_read reads one file; project_export returns everything in one shot.
Example:
{ "project_id": "my-saas" }
// Returns: {
// project_id: "my-saas-uuid", env: "prod",
// files: [
// { path: "index.html", type: "static", size: 4203, last_modified: "..." },
// { path: "hero.jpg", type: "binary", size: 82310, last_modified: "..." },
// { path: "api/checkout.mjs", type: "function", size: 1244 }
// ],
// counts: { static: 8, binary: 2, functions: 5 }
// }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": {
"project_id": "<project_id>"
},
"name": "project_files_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Which environment to list. Defaults to "prod" (live). Explicit "dev" requires hosted preview access for signed-in accounts on every plan. | |
| preview_id | No | Exact current candidate of preview_session_id. Both fields are required together. | |
| project_id | Yes | Project ID, slug, subdomain, or 'default'. | |
| preview_session_id | No | Exact open preview session paired with preview_id and env:"dev". It does not fall back to another source. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| data | No | ||
| error | No | ||
| message | No |