Websites with Liquid pages by route, layouts, snippets, data and assets.
A website is a resource with kind website. It is served under tensorsites.net and, on paid plans, at custom domains. Pages, layouts and snippets use Liquid. Pages are named by route (/, /blog/:slug). Data templates use JSON. See website_save_template.
Changes go live only when you call website_publish. It publishes all templates, or none if any template fails to parse or render.
Assets are files. Manage them as in a document repository, using the website as space_id. See Upload a file and file_list. Each asset is served at its folder path and name, and at /_assets/<sha256>/<name> (asset_url).
To serve a website on a domain in a domains resource, use domain_connect_website.
The examples use the callTool helper. To connect, see the Quickstart or Authentication.
Websites
A limited agent can make only the changes its permissions allow. Read-only access allows no changes. See Access and permissions.
| Website | Allows |
|---|---|
templates | Create, change and delete templates. |
publish | Publish the site. |
upload | Upload assets. |
folders | Create and delete asset folders. |
delete_own | Delete or move assets the agent uploaded. |
delete_any | Delete or move any asset. |
Websites
These limits apply alongside the general limits.
| What | Limit |
|---|---|
| Templates | 200,000 characters each |
| Template names | 200 characters |
| Assets | The organization's maximum file size each (5 GiB unless its owner chose otherwise), with names up to 255 characters |
Tools · Websites
Returns a website’s URLs, live release, unpublished changes, recent releases, templates and assets. To upload assets, call file_begin_upload with the website’s id.
project_id string Requiredspace_id string Requiredlist_spaces.The website’s name, url, verified domains, live release, published_at (null if unpublished), unpublished_changes, recent releases, templates and assets. Releases are newest first, with the live release marked live. Templates omit bodies and include id, kind (page, layout, snippet or data) and name (a page’s route). Each asset is served at its path.
curl https://tensorworks.net/mcp \
-H "Authorization: Bearer $TENSORWORKS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "website_get",
"arguments": {
"project_id": "b6909c9cf00c1d482686b5f52eadd58e",
"space_id": "7f3e9a1c5b2d48e6a0c4f8b2d6e1a3c5"
}
}
}'{
"name": "Launch site",
"url": "https://7f3e9a1c5b2d48e6a0c4f8b2d6e1a3c5.tensorsites.net",
"domains": [
"https://www.example.com"
],
"release": "8d0f6b2e4c1a7395e8f0d2b4a6c8e1f3579b2d4f6a8c0e1b3d5f7a9c2e4b6d8f",
"published_at": "2026-09-30T23:46:04.520Z",
"unpublished_changes": true,
"releases": [
{
"release": "8d0f6b2e4c1a7395e8f0d2b4a6c8e1f3579b2d4f6a8c0e1b3d5f7a9c2e4b6d8f",
"published_at": "2026-09-30T23:46:04.520Z",
"live": true
}
],
"templates": [
{
"id": "c353e591edfc32a9c547face5787e619",
"kind": "layout",
"name": "default",
"updated_at": "2026-09-30T23:46:04.500Z"
},
{
"id": "34543519def5cdf5c1663bcae19fd3d3",
"kind": "page",
"name": "/",
"updated_at": "2026-09-30T23:46:04.510Z"
},
{
"id": "ed03eac040234778c504377a68dd318e",
"kind": "page",
"name": "/blog/:slug",
"updated_at": "2026-09-30T23:46:04.530Z"
}
],
"assets": [
{
"path": "/images/logo.png",
"id": "496e4da976654fe6cd27f46f1bb93bc4ec5ca3ebf9907cfe38cd8711a9489d2e",
"size": 2048
}
]
}Tools · Websites
Returns a template and its body. Pages, layouts and snippets use Liquid. Data templates use JSON.
project_id string Requiredspace_id string Requiredlist_spaces.template_id string Requiredwebsite_get.The template’s id, kind, name, body, created_at and updated_at.
curl https://tensorworks.net/mcp \
-H "Authorization: Bearer $TENSORWORKS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "website_get_template",
"arguments": {
"project_id": "b6909c9cf00c1d482686b5f52eadd58e",
"space_id": "7f3e9a1c5b2d48e6a0c4f8b2d6e1a3c5",
"template_id": "ed03eac040234778c504377a68dd318e"
}
}
}'{
"id": "ed03eac040234778c504377a68dd318e",
"kind": "page",
"name": "/blog/:slug",
"body": "{% assign post = site.data.posts | where: \"slug\", route.params.slug | first %}{% unless post %}{% not_found %}{% endunless %}…",
"created_at": "2026-09-30T23:46:04.500Z",
"updated_at": "2026-09-30T23:46:04.530Z"
}Tools · Websites
Creates a template, or updates the template with the given template_id. Omitted fields are unchanged. Pages are named by route, such as /, /about, /blog/:slug (read as route.params.slug) or a route ending in *rest. The /404 page handles unmatched requests. The route’s last segment sets the content type (/feed.xml, /robots.txt). Templates can read site (name, url, data.<name>, pages), request and route. Pages can use {% layout 'default' %} with blocks, {% render 'header' %}, {% redirect '/new' %} and {% not_found %}. Changes go live when you call website_publish.
project_id string Requiredspace_id string Requiredlist_spaces.template_id string kind enum page, layout, snippet or data. Can’t be changed later.name string - and _, with / for folders. Renaming a template assigns it a new id.body string The template, as returned by website_get_template, under its new id if renamed.
curl https://tensorworks.net/mcp \
-H "Authorization: Bearer $TENSORWORKS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "website_save_template",
"arguments": {
"project_id": "b6909c9cf00c1d482686b5f52eadd58e",
"space_id": "7f3e9a1c5b2d48e6a0c4f8b2d6e1a3c5",
"kind": "page",
"name": "/",
"body": "{% layout 'default', title: 'Home' %}{% block content %}<h1>{{ site.name }}</h1>{% endblock %}"
}
}
}'{
"id": "34543519def5cdf5c1663bcae19fd3d3",
"kind": "page",
"name": "/",
"body": "{% layout 'default', title: 'Home' %}{% block content %}<h1>{{ site.name }}</h1>{% endblock %}",
"created_at": "2026-09-30T23:46:04.510Z",
"updated_at": "2026-09-30T23:46:04.510Z"
}Tools · Websites
Deletes a template. The published site keeps using it until the next publish.
project_id string Requiredspace_id string Requiredlist_spaces.template_id string RequiredThe deleted template’s id.
curl https://tensorworks.net/mcp \
-H "Authorization: Bearer $TENSORWORKS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "website_delete_template",
"arguments": {
"project_id": "b6909c9cf00c1d482686b5f52eadd58e",
"space_id": "7f3e9a1c5b2d48e6a0c4f8b2d6e1a3c5",
"template_id": "ed03eac040234778c504377a68dd318e"
}
}
}'{
"deleted": "ed03eac040234778c504377a68dd318e"
}Tools · Websites
Publishes the website’s current state. If any template fails to parse, or any fixed-route page fails to render, nothing is published and the error names the template and line.
project_id string Requiredspace_id string Requiredlist_spaces.The published release, unchanged (true if nothing changed since the last publish), and the url and domains where the site is served.
curl https://tensorworks.net/mcp \
-H "Authorization: Bearer $TENSORWORKS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "website_publish",
"arguments": {
"project_id": "b6909c9cf00c1d482686b5f52eadd58e",
"space_id": "7f3e9a1c5b2d48e6a0c4f8b2d6e1a3c5"
}
}
}'{
"release": "8d0f6b2e4c1a7395e8f0d2b4a6c8e1f3579b2d4f6a8c0e1b3d5f7a9c2e4b6d8f",
"unchanged": false,
"url": "https://7f3e9a1c5b2d48e6a0c4f8b2d6e1a3c5.tensorsites.net",
"domains": [
"https://www.example.com"
]
}Questions or something missing? Contact us.