Modules@robinpath/airtable

@robinpath/airtable

0.1.1Public

Airtable module for RobinPath.

@robinpath/airtable

Airtable module for RobinPath.

Category Functions Auth License

Why use this module?

The airtable module lets you:

  • List all bases accessible by the configured token
  • Get the schema (tables and fields) for a base
  • List records from a table with optional filtering, sorting, and pagination
  • Get a single record by ID
  • Create a single record in a table

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/airtable

Quick Start

1. Set up credentials

airtable.setToken "default" "patXXXXXXXXXXXXXX"

2. List all bases accessible by the configured token

airtable.listBases "default"

Available Functions

FunctionDescription
airtable.setTokenStore an Airtable personal access token for authentication
airtable.listBasesList all bases accessible by the configured token
airtable.getBaseSchemaGet the schema (tables and fields) for a base
airtable.listRecordsList records from a table with optional filtering, sorting, and pagination
airtable.getRecordGet a single record by ID
airtable.createRecordCreate a single record in a table
airtable.createRecordsBulk create up to 10 records in a table
airtable.updateRecordUpdate a single record (PATCH - only updates specified fields)
airtable.updateRecordsBulk update up to 10 records (PATCH)
airtable.replaceRecordReplace a single record (PUT - clears unspecified fields)
airtable.deleteRecordDelete a single record by ID
airtable.deleteRecordsBulk delete up to 10 records by ID
airtable.createTableCreate a new table in a base with field definitions
airtable.updateTableUpdate a table's name or description
airtable.createFieldCreate a new field in a table
airtable.updateFieldUpdate a field's name or description

Examples

List all bases accessible by the configured token

airtable.listBases "default"

Get the schema (tables and fields) for a base

airtable.getBaseSchema "default" "appABC123"

List records from a table with optional filtering, sorting, and pagination

airtable.listRecords "default" "appABC123" "Tasks" {"filterByFormula": "{Status}='Done'", "maxRecords": 50}

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/airtable";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  airtable.setToken "default" "patXXXXXXXXXXXXXX"
  airtable.listBases "default"
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.1latestyesterday
Install
$ robinpath install @robinpath/airtable
Version0.1.1
LicenseMIT
Unpacked Size7.4 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

productivity