Airtable

From HybridAIOne/hybridclaw · View interactive version

Airtable is an AI agent skill from the GitHub repository HybridAIOne/hybridclaw. Search Airtable bases and tables, read records and computed fields, and prepare guarded record CRUD requests with schema-based field validation.

How to use this skill

Skill file

Airtable

Use this skill for Airtable Web API work: base and table discovery, schema

inspection, record reads, field-aware record creation and updates, attachment

field payloads, formula/lookup/rollup reads, and carefully gated deletes.

Scope

choices

available

modified time fields as normal record values

Credential Rules

Airtable uses Personal Access Tokens or OAuth bearer tokens. Store the token in

HybridClaw encrypted runtime secrets; never paste it into the prompt.

Recommended setup order:

  1. Browser admin: open the active HybridClaw admin URL ending in /admin/secrets and set

AIRTABLE_PAT.

  1. Browser /chat or TUI fallback:

/secret set AIRTABLE_PAT "<pat-or-oauth-access-token>".

  1. Local console fallback:
hybridclaw secret set AIRTABLE_PAT "<pat-or-oauth-access-token>"

For live API calls inside HybridClaw, use the helper to build the

http_request payload wrapper, then pass the emitted inner httpRequest object

to the built-in http_request tool. The helper sets

bearerSecretName: "AIRTABLE_PAT" on that inner object so the gateway injects

the bearer token server-side. Do not use bash/curl for live Airtable calls when

http_request is available, and do not ask the user to store a HybridClaw

gateway token as an Airtable secret.

Do not try to verify AIRTABLE_PAT with bash, environment inspection, or by

asking the model whether the secret exists. The model cannot inspect the gateway

secret store. If the operator says the secret was set, attempt the

http_request call with bearerSecretName: "AIRTABLE_PAT". Only say the secret

is missing if the built-in http_request tool returns a gateway error that

explicitly says AIRTABLE_PAT is not set, unavailable, missing, or unresolved.

If the error says the secret is blocked by policy, report a policy/runtime

configuration problem instead of asking the operator to set the same secret

again.

Required Airtable PAT scopes depend on the task:

Error Interpretation

unresolved: the active gateway runtime cannot resolve that stored secret. Ask

the operator to set it in the same HybridClaw runtime/session in this order:

browser admin at the active /admin/secrets route,

/secret set AIRTABLE_PAT <pat> in browser /chat or TUI, then local

console fallback

hybridclaw secret set AIRTABLE_PAT <pat>, then start a fresh agent runtime

if the gateway was already running.

report that the stored secret exists but policy/runtime access blocked the

injection path. Do not ask the operator to set the same secret again.

rejected it or the PAT lacks the needed scopes/base access. Ask the operator

to check PAT scopes and base access; do not say the secret is unconfigured.

if the user asks.

Default Workflow

  1. Start with base and table discovery unless the base id and table id are

already known.

  1. If the user asks to list tables and does not provide a base id, first call

list-bases through http_request, then call schema --base-id ... for

each relevant base returned by Airtable.

  1. Read table schema before writes so field ids, field types, select choices,

and computed fields are known.

  1. Use plan for natural-language requests when you need a mutation tier before

execution.

  1. Use validate-fields or --schema-file on write payload builders before

creating or updating records.

  1. For writes, stop unless the operator has granted that exact mutation in the

current task.

  1. Pass --operator-grant only after explicit approval or an approved F14

escalation.

  1. Prefer table ids and field ids over names for durable automation. Table names

work but are rename-sensitive.

  1. When deleting records, use exact record ids only.

Command Contract

Run the colocated helper with Node:

node skills/airtable/airtable.cjs --help

Plan a natural-language request without contacting Airtable:

node skills/airtable/airtable.cjs plan "Update the status field on this Airtable task"

List bases:

node skills/airtable/airtable.cjs http-request list-bases

The helper prints a wrapper such as

{ "command": "http-request", "httpRequest": { ... } }. Pass only the

httpRequest value to the built-in http_request tool.

Get base schema:

node skills/airtable/airtable.cjs http-request schema --base-id appXXXXXXXXXXXXXX

List records:

node skills/airtable/airtable.cjs http-request list-records \
  --base-id appXXXXXXXXXXXXXX \
  --table tblXXXXXXXXXXXXXX \
  --field Name \
  --field Status \
  --filter-by-formula "{Status} = 'Active'" \
  --page-size 100

Airtable returns list-record results in pages of up to 100 records. If the

response includes offset, run the same command with --offset <offset> to

fetch the next page.

Get a record:

node skills/airtable/airtable.cjs http-request get-record \
  --base-id appXXXXXXXXXXXXXX \
  --table tblXXXXXXXXXXXXXX \
  --record-id recXXXXXXXXXXXXXX

Validate fields offline against a saved schema:

node skills/airtable/airtable.cjs validate-fields \
  --schema-file /tmp/airtable-schema.json \
  --table Pipeline \
  --fields-json '{"Status":"Active","Amount":1200,"Due Date":"2026-05-31"}'

Create or update a record only after explicit operator grant:

node skills/airtable/airtable.cjs http-request create-record \
  --base-id appXXXXXXXXXXXXXX \
  --table tblXXXXXXXXXXXXXX \
  --fields-json '{"Name":"Acme GmbH","Status":"New"}' \
  --schema-file /tmp/airtable-schema.json \
  --operator-grant

node skills/airtable/airtable.cjs http-request update-record \
  --base-id appXXXXXXXXXXXXXX \
  --table tblXXXXXXXXXXXXXX \
  --record-id recXXXXXXXXXXXXXX \
  --fields-json '{"Status":"Closed"}' \
  --schema-file /tmp/airtable-schema.json \
  --operator-grant

Prepare an attachment field value:

node skills/airtable/airtable.cjs attachment-payload \
  --field Files \
  --url https://example.com/signed-contract.pdf \
  --filename signed-contract.pdf

Delete a record only after explicit operator grant:

node skills/airtable/airtable.cjs http-request delete-record \
  --base-id appXXXXXXXXXXXXXX \
  --table tblXXXXXXXXXXXXXX \
  --record-id recXXXXXXXXXXXXXX \
  --operator-grant

Run offline eval scenarios:

node skills/airtable/airtable.cjs eval-scenarios

Field Validation

When table metadata is available, the helper validates common writable field

types before emitting write payloads:

present

existing files; new attachment URLs must be public http(s) URLs and must

not target localhost, private, or link-local IP ranges

Unknown field types are allowed after schema lookup so newly introduced

Airtable types do not block read-preserving updates unnecessarily. Unknown

field names or ids are refused.

Computed Fields

Formula, lookup, rollup, count, autonumber, created time, last modified time,

created by, and last modified by fields are read-only. Include them in record

read field selections when the user asks for computed values. Do not include

them in create or update payloads.

Conservative Mutations

These operations require --operator-grant:

Deletes are red tier. Creates, updates, and attachment updates are amber tier.

Read operations and computed-field reads are green tier.

Working Rules

explicit missing/forbidden/unresolved secret error.

read-only.

records, stop and ask for the exact record id.

includes costMeasurement.system = "UsageTotals" so evals can verify the

accounting contract.

References

https://support.airtable.com/docs/getting-started-with-airtables-web-api

https://support.airtable.com/docs/managing-api-call-limits-in-airtable

https://support.airtable.com/docs/supported-field-types-in-airtable-overview

https://support.airtable.com/docs/formula-field-reference

Validation

Run:

python3 skills/skill-creator/scripts/quick_validate.py skills/airtable
node skills/airtable/airtable.cjs --help
node skills/airtable/airtable.cjs eval-scenarios
node skills/airtable/airtable.cjs validate-fields --schema-file skills/airtable/fixtures/schema.json --table Pipeline --fields-json '{"Status":"Active","Amount":1200,"Files":[{"url":"https://example.com/file.pdf"}]}'
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.