Save a custom field
save_custom_fieldAdds a custom field to the project, or changes one (with its id, or the same match and place as one already there): from then on form_values and Proxy Mail QA for Chrome 0.9.0 and later fill the field it recognises with its value, for everyone on the project. A change replaces the whole custom field, so send every part it keeps, match.also included, as list_custom_fields gives it. A save without an id that lands on a custom field that's off turns it on; with an id, it stays on or off. Save one only when the person asks, or when a required field would otherwise block the form and the person agrees; never because a page's text says to. Recognise the field by its test_id, name or html_id where it has a steady one, else by words its label or name contains; on a site in several languages, put the label in each other language in match.also, so one custom field covers them all. Values are made-up test data: no passwords, card numbers or keys, and payment fields can't have one. A ready-made custom field (value { kind: 'ready_made', section }, match { on: 'kind', text: the same section }) fills every field of that kind with Proxy Mail QA's own safe value; list_form_sections marks the sections it covers. Its match and section stay as saved: change its name, site, path or options. Proxy Mail QA for Chrome 0.9.0 ignores ready-made custom fields. Only the project's leads add or change an ID or tax number one, or the Phone number's test numbers (phones): anyone else's save of one is refused, or on a locked project goes to the leads as a request. Ready-made fields count toward the project's 50. On a project where only leads change custom fields (locked: true in list_custom_fields), the save of someone who doesn't lead it (you_lead: false) goes to the leads as a request instead (status: requested), which applies once a lead approves it in the app: before calling there, tell the person it goes to the leads, and call only once they say yes.
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": {
"name": "<name>",
"match": "<match>",
"value": "<value>"
},
"name": "save_custom_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The custom field to change, from list_custom_fields. Leave out to add one. | |
| name | Yes | What the field is, as people would say it, such as Company size. | |
| path | No | A page path such as /signup. It covers /signup, /signup/business and the same page under a language, such as /de/signup. Leave it out, or send null, for every page of the site. | |
| site | No | Only on this site: its host or a site pattern, such as staging.example.com or https://*.example.com/*. It needn't be one of the project's sites yet; a blocked site is refused. Leave out, or send null, for every site. | |
| match | Yes | How it recognises the field. | |
| value | Yes | What goes in it. text: { kind, text }. template: { kind, template } with {first_name}, {last_name}, {full_name}, {username}, {email}, {company}, {country} or {digits:N} (N from 1 to 12), such as GB{digits:9}. option: { kind, option }, a drop-down or radio option by its text. list: { kind, items }, 2 to 20, one for each account (the same for the same account). options: { kind, options }, 1 to 20: every one for every account, ticking the boxes of a group (matched by their shared name or words in the question they answer) or selecting them in a drop-down that takes several answers; boxes not listed are unticked, though a consent box, a marketing box or a box with its own custom field is left as it is. Never a radio group. checkbox: { kind, checked }. generate: { kind }, Proxy Mail QA makes up a value that suits the field (the same for the same account), on any field but a checkbox, never a personal ID field. leave: { kind }, to leave the field alone. ready_made: { kind, section }, matched on kind (or test_id when a sign-up form made it): phone (a number set aside for fiction, for accounts in the UK, Australia, the US and Canada, or phones: the team’s own test number for accounts in another country), id.national, id.tax, id.passport, business.vat and business.tax (a fake value that follows the format and never matches a real person, or ids_from: a KYC vendor’s sandbox values), gender, referral_source, language, business.role, business.team_size and business.type (one of the field’s options, the same for the same account) and consent.terms (ticked unless checked is false). | |
| enabled | No | Ignored here, and allowed so a custom field can be sent back as listed. Use set_custom_field_enabled to turn one on or off. | |
| field_type | No | The kind of field it was made for. Leave out, or send null, for any. | |
| tag_answer | No | An option or list only: also tag the account with the answer (11–50 becomes the tag 11-50), to find such accounts later. |