Website UI
Describe the payload sent to your website with inputSchema. This field is required for Website UI tools. Send it with the common tool fields.
{
"type": "website_payload",
"label": "Show product",
"assistantUseDescription": "Show the product selected by the visitor.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"description": "The ID of the product the visitor selected."
}
},
"required": ["productId"]
}
}
Describing inputs with inputSchema
API Actions and Website UI tools use inputSchema to describe the values the agent supplies. The schema must have "type": "object" at the root. Field descriptions are required. Use each field's description to tell the agent what value to supply.
The supported keywords are type, properties, required, description, items, enum, and additionalProperties.
- Objects can contain nested objects and fields declared in
properties. List mandatory fields inrequired. - Field types include strings, numbers, integers, booleans, objects, and arrays. Enums support string choices. Primitive fields and string enums can also be nullable.
- Arrays use a single
itemsschema that applies to every element. For example,{ "type": "array", "items": { "type": "string" } }describes an array of strings. Positional schemas that assign different types to different array elements are unsupported. - Extra properties are disabled by default. Set
"additionalProperties": trueon an object to allow undeclared keys with any JSON value inside that object. The resulting schema preserves explicittrueand usesfalsewhen the setting is omitted. A schema as the value ofadditionalPropertiesis unsupported.
The API rejects other JSON Schema keywords, including $ref and $defs for references, oneOf, anyOf, and allOf for combining schemas, and constraints such as pattern, minLength, minimum, and maximum.
Tool creation response
Tool creation returns 201 Created with data.id, data.agentId, data.skillId, data.type, data.label, and data.toolName. Knowledge tools also return data.vectorStoreIds.
| Status | Meaning |
|---|---|
400 | Invalid input, an unavailable vector store or connection, or the Skill has reached its tool limit. |
401 | The PD access token or delegated OAuth token is missing or invalid. |
403 | The delegated OAuth token lacks pd:write. |
404 | The Skill is unavailable on the specified agent in the token's organization. |
409 | For Knowledge uploads, a request with the same idempotency key is still processing. |
413 | For Knowledge uploads, a file exceeds 20 MiB. |
429 | The request exceeded the rate limit. |