TablesRead-only

Search rows a relation can point at

search_relation_targets

Find candidate rows in the table a relation points at, matched on the target’s primary (naming) field. This is how you turn "link the Acme invoice" into the row id link_table_rows needs.

Parameters

ParameterTypeRequiredDescription
tableIdstringrequiredTable holding the relation field
fieldKeystringrequiredRelation field KEY
querystringoptionalText to match against the target’s name
limitintegeroptionalInput for limit.

Example call

The tool call an MCP client sends (required arguments shown with placeholder values).

{
"tool": "search_relation_targets",
"arguments": {
"tableId": "tableId_123",
"fieldKey": "value"
}
}

Use this tool in

Related Tables tools