Coda Get Control
coda_get_controlRetrieve the current value, type, ID, and name of a control in a Coda doc, such as a slider or select list, to read its user-facing state.
Instructions
Get the current value of a control in a Coda doc.
Returns the control's name, ID, type, and current value. Controls include sliders, select lists, date pickers, text inputs, and buttons. The value reflects the current user-facing state. Use coda_list_controls to discover available controls.
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": {
"doc_id": "<doc_id>",
"control_id_or_name": "<control_id_or_name>"
},
"name": "coda_get_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | The doc ID containing the control | |
| control_id_or_name | Yes | Control ID or name |