Create a smart field
create_smart_fieldDefine a new custom product field from the merchant's own words — "a one-sentence description", "the material from the specs attribute". Foldsquare turns it into a rule: a formula when the value can be worked out from the product data (free, never calls AI again), otherwise an AI instruction whose results are stored per product. Saves the field and returns a preview on a few real products. With generate (default true) it then fills the field in for every product in the background; AI fields count each product against the monthly allowance. Show the merchant the preview before building a catalog on it.
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": {
"instruction": "<instruction>"
},
"name": "create_smart_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| generate | No | Fill the field in for every product now (default true) | |
| instruction | Yes | What the field should contain, in the merchant's words |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| field | Yes | ||
| preview | Yes | ||
| generating | Yes | The products being filled in now, or null when not asked to |