# Integrations

The integration_ tools, for the services in Tool kit that sign in with their own details (databases, data warehouses, AWS, Pinecone, Call any API) or need none (arXiv, Wikipedia, DuckDuckGo): list them, read a tool’s schema, and run it with the saved connection, which the agent never sees.

## integration_list

The person's integrations: outside services Artifacts runs itself with the details they saved in Tool kit (https://tryartifacts.com/toolkit): their databases (PostgreSQL, MySQL, Microsoft SQL Server, Oracle, MongoDB, Redis, ClickHouse, Supabase, Elasticsearch), data warehouses (Snowflake, Databricks, Google BigQuery), AWS (S3, DynamoDB, RDS, Athena, SQS, SES, Lambda, CloudWatch, Textract), Pinecone, Call any API (any public HTTP API, with the person's keys as {{NAME}} secrets), and public sources that need no connection (Wikipedia, arXiv, DuckDuckGo). For each: whether it is connected, its guide topic, and its tools in a line each. Then integration_tool_schemas for a tool's input, and integration_run to run it. These are not the apps of the composio_ tools (Gmail, Sheets, Slack…). They connect an integration themselves in Tool kit; you cannot.

Parameters:
- `integrations` (string[]): Only these (postgresql, mysql, mssql, oracledb, mongodb, redis, clickhouse, supabase, elasticsearch, snowflake, databricks, google_bigquery, s3, dynamodb, rds, athena, sqs, ses, lambda, cloudwatch, textract, pinecone, wikipedia, arxiv, duckduckgo, http); all when left out.

## integration_tool_schemas

The input schemas of integration tools by id (as integration_list names them, e.g. postgresql_query, wikipedia_search): each param, its type, whether it is required and what it means. The connection's own details (host, login, key) are not among them: integration_run adds them.

Parameters:
- `tools` (string[], required): Tool ids, e.g. postgresql_introspect.

## integration_run

Runs one integration tool with the person's saved connection and answers its output. Read the integration's guide (guide topic "integrations/<id>") once before its first use, and a database's schema (its _introspect tool) before writing a query. A tool that writes (insert, update, delete, execute, set, send, invoke, a DROP) changes the person's own data or acts in their account: run one only when they asked for that. A file input is an Artifacts file (its URL …/api/uploads/<id>, or id); a file a tool returns (an S3 object, a Supabase download, a Databricks chart) is kept in space_id when given, and its url comes back. For Call any API, write the person's secrets as {{NAME}} (integration_list names them): their values are put in when the request is sent.

Parameters:
- `tool` (string, required): The tool id, e.g. postgresql_query.
- `arguments` (object): Its input, as integration_tool_schemas gives it.
- `space_id` (string): The space to keep a file the tool returns in (you need edit access there).
