playtable_fields

Generate playtable field condition

Turn a run rule in words into the AST config.run_condition takes, for a draft column of one tab: one llm.generate call (credits_charged says what it cost), the tab's columns and the built-in attributes as its vocabulary, the answer validated like a saved condition. Never a failed request: error_code says why there is no AST (condition_not_expressible, condition_invalid, generation_unparseable, a lane code). Try it with preview_playtable_field_condition, then save it with nl_condition beside it.

Contract:

  • MCP tool generate_playtable_field_condition, registry package mcp.playtables/playtable_fields, mount playtables.columns.
  • Operation action, response envelope action.
  • Flags: none.
post/api/playtable-fields/generate-condition

Request

  • Base URL
    https://beta.getsales.io/playtables/v1
  • Auth
    HTTP bearer and API key in header Team-SID

Request body

playtable_sidstring required

Owner playtable sid (pt_tb_…).

object_type'people' | 'company' required

Which rows the rule is about, people or company: the tab the draft column belongs to.

nl_conditionstring required

The rule in words ("only companies with a website and nobody found yet"). The prompt gets the tab's columns and the built-in attributes, never row data; a column the tab lacks cannot be used.

Response

action success envelope.

successtrue required
operation'action' required
actionstring required

kebab-case verb; matches the route segment.

itemunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.