nsd_read_file
Read one file of a live site, exactly as it is online now. Use it before a small change ("change the price", "fix the date") in a chat that does not have the page yet: read the file, change only what the user asked, then send it back with nsd_publish under the same name. Text files come back as text, images and other binary files as base64. Max 1 MB.
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": {
"site_id": "<site_id>",
"path": "<path>"
},
"name": "nsd_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file path as nsd_get_site lists it, e.g. index.html. | |
| site_id | Yes | The site id from nsd_list_sites. |