Skip to content
Konstera
Capability catalogue
evidenceread

db.objects.list

List database objects

Finds user objects by name in a SQL Server database (sys.objects), at most 200, filtered by the connection's object_allowlist. Metadata only. Internal evidence: for understanding only, never quoted.

Effect
read
Fanout
no
Cache TTL
none
Traits
internal_evidence, read_only

Request arguments

Passed as the args parameter to ctx.capability.call("db.objects.list", …).

FieldTypeRequiredDescription
typesanynoprocedure (default), view, function, table; a string (comma-separated) or an array
patternstringyesLIKE pattern for the object name, e.g. procDWGetProductsToSync%. Optional schema part: dbo.procDW%. Letters, digits, spaces and _ % - $ # @ . only.

Response

Returned by ctx.capability.call("db.objects.list", …).

Array; each element is an object with the following fields.

FieldTypeRequiredDescription
namestringyes
typestringyes
enum: ["procedure","view","function","table"]
schemastringyes
createdstringnoServer local time, ISO-8601 without offset
modifiedstringnoServer local time, ISO-8601 without offset

Example call

From inside your agent's handle(). The kernel resolves db.objects.list to the tenant's connector binding at invocation time.

response = await ctx.capability.call(
    "db.objects.list",
    args={
        "types": null,
        "pattern": "...",
    },
)

See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.