Find code examples
get_code_examplesThe SQL, Python, CLI and config blocks in the guide that match a topic, each with the explanation around it, the section it is from (URL with anchor), and the docs links that section cites. Runnable context for a coding agent; check the linked Databricks docs for current syntax.
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": {
"topic": "<topic>"
},
"name": "get_code_examples"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Only this language: sql, python, bash, yaml, json, hcl ... | |
| limit | No | How many examples (default 8) | |
| topic | Yes | What the code should do or touch, e.g. 'lakebase branch', 'auto loader', 'row filter' | |
| chapter | No | Only examples from this chapter or note: its slug (lakebase, unity-catalog), path or URL. list_chapters has them; the field-guide-code prompt completes them. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | Yes | ||
| build | Yes | The commit of the deploy that answered | |
| topic | Yes | ||
| total | Yes | ||
| ttlMs | Yes | How long this answer may be kept before asking again, in milliseconds | |
| examples | Yes | ||
| index_built | Yes | When this deploy's index was built (ISO 8601) |