Set public paths
set_public_pathsLet anyone open some paths of a restricted spawnpoint project with no sign-in, while the rest of the app stays behind sign-in: a webhook (/webhooks/slack), an OAuth callback that people outside the share list return through (/oauth/callback), or pages for those people (/p/). A callback that only signed-in viewers return through already works and needs no entry. Pass the whole list each time: it replaces the current one, and [] clears it. An entry is an exact path (/webhooks/slack matches only that path) or a folder ending in / (/p/* matches everything under /p/). Matching is exact and case-sensitive. / and /* are refused: to open the whole app, use set_visibility. At most 20 entries. List only the exact paths a sender or a page needs, never a folder that also holds other routes: /api/* opens the whole API. A public page needs its own files' folders listed too (/assets/* for Vite, /_next/static/* for Next.js), or it opens without its scripts and styles. spawnpoint checks no one on these paths, so a webhook route must check the sender's own signature (for example Slack's signing secret). Takes effect on the next request, with no redeploy. Returns each path's url to give the sender. A sleeping app takes about half a minute to wake and a webhook sender may give up first, so open the app before registering a webhook, or keep it awake with set_always_on.
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>",
"paths": "<paths>"
},
"name": "set_public_paths"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | the whole list of paths anyone may open with no sign-in. Each is an exact path such as /webhooks/slack, or a folder ending in /* such as /p/*, which covers everything under /p/. Replaces the current list; [] clears it, so on a restricted project every path needs sign-in again | |
| project_id | Yes | the id of the project |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| project_id | Yes | ||
| visibility | Yes | ||
| public_paths | Yes |