Teach a Hostlet site
add_documentAdds a document (menu, price list, rules, FAQ) to a site's AI so it can answer visitors from it. The text becomes answerable by anyone who can open the site.
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": "<site>",
"owner_key": "<owner_key>",
"title": "<title>",
"text": "<text>"
},
"name": "add_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The site's address name, e.g. "maple-street-bakery" for maple-street-bakery.hostlet.ai. | |
| text | Yes | The full document text. | |
| title | Yes | Document title, e.g. "House Rules 2024". | |
| owner_key | Yes | The private owner key returned when the site was made. It proves the caller owns the site. |