Get the workspace link code
get_workspace_link_codeThe code every public form link of this workspace starts with: the custom one (vanity_slug) when the workspace claimed one, else its short code, and whether a custom one can still be claimed. Claiming one is done in the dForms dashboard. Form links are not built from it: the form tools return each exact public_url.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_workspace_link_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | No | The workspace this call acts in: an id from list_my_workspaces. Required for a person signed in with several workspaces and for staff of this deployment; optional with an API key or with only one workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| can_claim | Yes | ||
| workspace | Yes | The workspace this call acted in, to compare with the one the user means. | |
| short_code | Yes | The code links use when there is no custom one. | |
| vanity_slug | Yes | The custom code, or null when none was claimed. |