Teach a Hostlet site
add_documentGive a site's AI a document to answer visitors from (a menu, price list, rules, FAQ): pass its title and full text.
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 | ||
| text | Yes | The document text. | |
| title | Yes | Document title, e.g. "House Rules 2024". | |
| owner_key | Yes |