List integration tools
Returns a page of the tools an integration gives agents.
GET
Returns a page of the tools an integration gives agents. Send the first page's revision with each later offset; if the integration's tools change during the read, the request returns 409 and the read restarts at offset zero.
apiKeyheader
x-api-key<token>integrationId*stringMatch
^intg_[0-9a-hjkmnp-tv-z]{16,24}$offset?|nullrevision?stringMatch
^[a-f0-9]{64}$Success
application/json- response
nextOffset*|nulltotal*integerRange
0 <= value <= 9007199254740991revision*stringMatch
^[a-f0-9]{64}$offset*integerRange
0 <= value <= 9007199254740991items*array<>Items
items <= 50import { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.integrations.listTools({
"integrationId": "example"
});Example Response
{
"nextOffset": 0,
"total": 0,
"revision": "string",
"offset": 0,
"items": [
{
"name": "string",
"title": "string",
"kind": "query",
"effect": "read",
"guards": [
"pinnedDestination"
],
"granted": true,
"unavailableReason": "input_schema_too_large",
"enabled": true,
"runsWithoutApproval": true
}
]
}