{
  "service": "coda",
  "displayName": "Coda",
  "categories": [
    "Productivity",
    "Data"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Token",
      "placeholder": "coda_api_token",
      "description": "Coda API token used with the Authorization Bearer header. Generate it from your Coda account page at https://coda.io/account."
    }
  ],
  "homepageUrl": "https://coda.io",
  "actions": [
    {
      "id": "coda.create_page",
      "service": "coda",
      "name": "create_page",
      "description": "Create a new page in a Coda doc, with optional subtitle, icon, image, parent page, and structured page content.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "docId": {
            "type": "string",
            "minLength": 1,
            "description": "ID of the doc."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Name of the page."
          },
          "subtitle": {
            "type": "string",
            "description": "Subtitle of the page."
          },
          "iconName": {
            "type": "string",
            "description": "Name of the page icon."
          },
          "imageUrl": {
            "type": "string",
            "description": "URL of the cover image to use."
          },
          "parentPageId": {
            "type": "string",
            "description": "ID of the parent page for a subpage."
          },
          "pageContent": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Structured page content payload defined by the official Coda API."
          }
        },
        "additionalProperties": false,
        "required": [
          "docId",
          "name"
        ],
        "description": "The input payload for this action."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Request ID for the asynchronous page creation."
          },
          "id": {
            "type": "string",
            "description": "ID of the created page."
          }
        },
        "additionalProperties": false,
        "description": "The output payload for this action."
      }
    },
    {
      "id": "coda.get_current_user",
      "service": "coda",
      "name": "get_current_user",
      "description": "Get the current Coda user associated with the authenticated API token.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "The input payload for this action."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "user": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Name of the user."
              },
              "loginId": {
                "type": "string",
                "description": "Email address of the user."
              },
              "type": {
                "type": "string",
                "description": "Type of the user resource."
              },
              "pictureLink": {
                "type": "string",
                "description": "Browser-friendly link to the user's avatar image."
              },
              "scoped": {
                "type": "boolean",
                "description": "Whether the token has restricted access."
              },
              "tokenName": {
                "type": "string",
                "description": "Name of the token used for this request."
              },
              "href": {
                "type": "string",
                "description": "API link to the user."
              },
              "workspace": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "ID of the workspace."
                  },
                  "type": {
                    "type": "string",
                    "description": "Type of the workspace reference."
                  },
                  "href": {
                    "type": "string",
                    "description": "API link to the workspace."
                  },
                  "browserLink": {
                    "type": "string",
                    "description": "Browser-friendly link to the workspace."
                  },
                  "name": {
                    "type": "string",
                    "description": "Name of the workspace."
                  }
                },
                "additionalProperties": true,
                "description": "Coda workspace reference."
              }
            },
            "additionalProperties": true,
            "description": "Coda current user."
          }
        },
        "additionalProperties": false,
        "description": "The output payload for this action."
      }
    },
    {
      "id": "coda.get_doc",
      "service": "coda",
      "name": "get_doc",
      "description": "Get metadata for a specific Coda doc by doc ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "docId": {
            "type": "string",
            "minLength": 1,
            "description": "ID of the doc."
          }
        },
        "additionalProperties": false,
        "required": [
          "docId"
        ],
        "description": "The input payload for this action."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "doc": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "ID of the Coda doc."
              },
              "type": {
                "type": "string",
                "description": "Type of the doc resource."
              },
              "href": {
                "type": "string",
                "description": "API link to the Coda doc."
              },
              "browserLink": {
                "type": "string",
                "description": "Browser-friendly link to the Coda doc."
              },
              "name": {
                "type": "string",
                "description": "Name of the doc."
              },
              "owner": {
                "type": "string",
                "description": "Email address of the doc owner."
              },
              "ownerName": {
                "type": "string",
                "description": "Name of the doc owner."
              },
              "icon": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A Coda object returned by the API."
              },
              "docSize": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A Coda object returned by the API."
              },
              "sourceDoc": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A Coda object returned by the API."
              },
              "createdAt": {
                "type": "string",
                "description": "Timestamp when the doc was created."
              },
              "updatedAt": {
                "type": "string",
                "description": "Timestamp when the doc was last modified."
              },
              "published": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A Coda object returned by the API."
              },
              "folder": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A Coda object returned by the API."
              },
              "workspace": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "ID of the workspace."
                  },
                  "type": {
                    "type": "string",
                    "description": "Type of the workspace reference."
                  },
                  "href": {
                    "type": "string",
                    "description": "API link to the workspace."
                  },
                  "browserLink": {
                    "type": "string",
                    "description": "Browser-friendly link to the workspace."
                  },
                  "name": {
                    "type": "string",
                    "description": "Name of the workspace."
                  }
                },
                "additionalProperties": true,
                "description": "Coda workspace reference."
              },
              "workspaceId": {
                "type": "string",
                "description": "ID of the Coda workspace containing this doc."
              },
              "folderId": {
                "type": "string",
                "description": "ID of the Coda folder containing this doc."
              }
            },
            "additionalProperties": true,
            "description": "Coda doc."
          }
        },
        "additionalProperties": false,
        "description": "The output payload for this action."
      }
    },
    {
      "id": "coda.get_mutation_status",
      "service": "coda",
      "name": "get_mutation_status",
      "description": "Get the completion status for an asynchronous Coda mutation using a previously returned request ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "minLength": 1,
            "description": "Request ID returned by a previous mutation."
          }
        },
        "additionalProperties": false,
        "required": [
          "requestId"
        ],
        "description": "The input payload for this action."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "completed": {
            "type": "boolean",
            "description": "Whether the mutation has completed."
          },
          "warning": {
            "type": "string",
            "description": "Warning returned when the mutation completed with caveats."
          }
        },
        "additionalProperties": false,
        "description": "The output payload for this action."
      }
    },
    {
      "id": "coda.get_table",
      "service": "coda",
      "name": "get_table",
      "description": "Get details about a specific Coda table or view.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "docId": {
            "type": "string",
            "minLength": 1,
            "description": "ID of the doc."
          },
          "tableIdOrName": {
            "type": "string",
            "minLength": 1,
            "description": "ID or name of the table. Names are discouraged because they are fragile."
          },
          "useUpdatedTableLayouts": {
            "type": "boolean",
            "description": "Whether to request updated table layout handling."
          }
        },
        "additionalProperties": false,
        "required": [
          "docId",
          "tableIdOrName"
        ],
        "description": "The input payload for this action."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "table": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "ID of the table."
              },
              "type": {
                "type": "string",
                "description": "Type of the table resource."
              },
              "tableType": {
                "type": "string",
                "description": "Type of the table or view."
              },
              "href": {
                "type": "string",
                "description": "API link to the table."
              },
              "browserLink": {
                "type": "string",
                "description": "Browser-friendly link to the table."
              },
              "name": {
                "type": "string",
                "description": "Name of the table."
              },
              "parent": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "ID of the page."
                  },
                  "type": {
                    "type": "string",
                    "description": "Type of the page reference."
                  },
                  "href": {
                    "type": "string",
                    "description": "API link to the page."
                  },
                  "browserLink": {
                    "type": "string",
                    "description": "Browser-friendly link to the page."
                  },
                  "name": {
                    "type": "string",
                    "description": "Name of the page."
                  }
                },
                "additionalProperties": true,
                "description": "Coda page reference."
              },
              "parentTable": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "ID of the table."
                  },
                  "type": {
                    "type": "string",
                    "description": "Type of the table reference."
                  },
                  "tableType": {
                    "type": "string",
                    "description": "Type of the table or view."
                  },
                  "href": {
                    "type": "string",
                    "description": "API link to the table."
                  },
                  "browserLink": {
                    "type": "string",
                    "description": "Browser-friendly link to the table."
                  },
                  "name": {
                    "type": "string",
                    "description": "Name of the table."
                  }
                },
                "additionalProperties": true,
                "description": "Coda table reference."
              },
              "displayColumn": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "ID of the column."
                  },
                  "type": {
                    "type": "string",
                    "description": "Type of the column reference."
                  },
                  "href": {
                    "type": "string",
                    "description": "API link to the column."
                  },
                  "name": {
                    "type": "string",
                    "description": "Name of the column."
                  }
                },
                "additionalProperties": true,
                "description": "Coda column reference."
              },
              "rowCount": {
                "type": "integer",
                "description": "Total number of rows in the table."
              },
              "sorts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A Coda object returned by the API."
                },
                "description": "Sorts applied to the table."
              },
              "layout": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A Coda object returned by the API."
              },
              "filter": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A Coda object returned by the API."
              },
              "createdAt": {
                "type": "string",
                "description": "Timestamp when the table was created."
              },
              "updatedAt": {
                "type": "string",
                "description": "Timestamp when the table was last modified."
              },
              "viewId": {
                "type": "string",
                "description": "View ID associated with the table, when present."
              }
            },
            "additionalProperties": true,
            "description": "Coda table."
          }
        },
        "additionalProperties": false,
        "description": "The output payload for this action."
      }
    },
    {
      "id": "coda.list_columns",
      "service": "coda",
      "name": "list_columns",
      "description": "List columns in a Coda table with pagination and optional visibility filtering.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "docId": {
            "type": "string",
            "minLength": 1,
            "description": "ID of the doc."
          },
          "tableIdOrName": {
            "type": "string",
            "minLength": 1,
            "description": "ID or name of the table. Names are discouraged because they are fragile."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Maximum number of results to return."
          },
          "pageToken": {
            "type": "string",
            "minLength": 1,
            "description": "Opaque token used to fetch the next page of results."
          },
          "visibleOnly": {
            "type": "boolean",
            "description": "Whether to return only visible columns for a base table."
          }
        },
        "additionalProperties": false,
        "required": [
          "docId",
          "tableIdOrName"
        ],
        "description": "The input payload for this action."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "Coda column.",
              "format": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A Coda object returned by the API."
              }
            },
            "description": "Columns returned by the query."
          },
          "nextPageToken": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque token used to fetch the next page of results, or null when unavailable."
              },
              {
                "type": "null"
              }
            ]
          },
          "nextPageLink": {
            "anyOf": [
              {
                "type": "string",
                "description": "URL for the next page of results, or null when unavailable."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Paginated Coda column list."
      }
    },
    {
      "id": "coda.list_docs",
      "service": "coda",
      "name": "list_docs",
      "description": "List Coda docs accessible to the authenticated user with optional ownership, publication, workspace, and pagination filters.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "isOwner": {
            "type": "boolean",
            "description": "Show only docs owned by the user."
          },
          "isPublished": {
            "type": "boolean",
            "description": "Show only published docs."
          },
          "query": {
            "type": "string",
            "description": "Search term used to filter down results."
          },
          "sourceDoc": {
            "type": "string",
            "description": "Show only docs copied from the specified doc ID."
          },
          "isStarred": {
            "type": "boolean",
            "description": "Whether to filter by starred state."
          },
          "inGallery": {
            "type": "boolean",
            "description": "Show only docs visible within the gallery."
          },
          "workspaceId": {
            "type": "string",
            "description": "Show only docs in the given workspace."
          },
          "folderId": {
            "type": "string",
            "description": "Show only docs in the given folder."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Maximum number of results to return."
          },
          "pageToken": {
            "type": "string",
            "minLength": 1,
            "description": "Opaque token used to fetch the next page of results."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for this action."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "ID of the Coda doc."
                },
                "type": {
                  "type": "string",
                  "description": "Type of the doc resource."
                },
                "href": {
                  "type": "string",
                  "description": "API link to the Coda doc."
                },
                "browserLink": {
                  "type": "string",
                  "description": "Browser-friendly link to the Coda doc."
                },
                "name": {
                  "type": "string",
                  "description": "Name of the doc."
                },
                "owner": {
                  "type": "string",
                  "description": "Email address of the doc owner."
                },
                "ownerName": {
                  "type": "string",
                  "description": "Name of the doc owner."
                },
                "icon": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A Coda object returned by the API."
                },
                "docSize": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A Coda object returned by the API."
                },
                "sourceDoc": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A Coda object returned by the API."
                },
                "createdAt": {
                  "type": "string",
                  "description": "Timestamp when the doc was created."
                },
                "updatedAt": {
                  "type": "string",
                  "description": "Timestamp when the doc was last modified."
                },
                "published": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A Coda object returned by the API."
                },
                "folder": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A Coda object returned by the API."
                },
                "workspace": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "ID of the workspace."
                    },
                    "type": {
                      "type": "string",
                      "description": "Type of the workspace reference."
                    },
                    "href": {
                      "type": "string",
                      "description": "API link to the workspace."
                    },
                    "browserLink": {
                      "type": "string",
                      "description": "Browser-friendly link to the workspace."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the workspace."
                    }
                  },
                  "additionalProperties": true,
                  "description": "Coda workspace reference."
                },
                "workspaceId": {
                  "type": "string",
                  "description": "ID of the Coda workspace containing this doc."
                },
                "folderId": {
                  "type": "string",
                  "description": "ID of the Coda folder containing this doc."
                }
              },
              "additionalProperties": true,
              "description": "Coda doc."
            },
            "description": "Docs returned by the query."
          },
          "nextPageToken": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque token used to fetch the next page of results, or null when unavailable."
              },
              {
                "type": "null"
              }
            ]
          },
          "nextPageLink": {
            "anyOf": [
              {
                "type": "string",
                "description": "URL for the next page of results, or null when unavailable."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Paginated Coda doc list."
      }
    },
    {
      "id": "coda.list_pages",
      "service": "coda",
      "name": "list_pages",
      "description": "List pages in a Coda doc with pagination.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "docId": {
            "type": "string",
            "minLength": 1,
            "description": "ID of the doc."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Maximum number of results to return."
          },
          "pageToken": {
            "type": "string",
            "minLength": 1,
            "description": "Opaque token used to fetch the next page of results."
          }
        },
        "additionalProperties": false,
        "required": [
          "docId"
        ],
        "description": "The input payload for this action."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "ID of the page."
                },
                "type": {
                  "type": "string",
                  "description": "Type of the page resource."
                },
                "href": {
                  "type": "string",
                  "description": "API link to the page."
                },
                "browserLink": {
                  "type": "string",
                  "description": "Browser-friendly link to the page."
                },
                "name": {
                  "type": "string",
                  "description": "Name of the page."
                },
                "subtitle": {
                  "type": "string",
                  "description": "Subtitle of the page."
                },
                "icon": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A Coda object returned by the API."
                },
                "image": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A Coda object returned by the API."
                },
                "contentType": {
                  "type": "string",
                  "description": "Type of page content."
                },
                "isHidden": {
                  "type": "boolean",
                  "description": "Whether the page is hidden in the UI."
                },
                "isEffectivelyHidden": {
                  "type": "boolean",
                  "description": "Whether the page or one of its ancestors is hidden in the UI."
                },
                "parent": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "ID of the page."
                    },
                    "type": {
                      "type": "string",
                      "description": "Type of the page reference."
                    },
                    "href": {
                      "type": "string",
                      "description": "API link to the page."
                    },
                    "browserLink": {
                      "type": "string",
                      "description": "Browser-friendly link to the page."
                    },
                    "name": {
                      "type": "string",
                      "description": "Name of the page."
                    }
                  },
                  "additionalProperties": true,
                  "description": "Coda page reference."
                },
                "children": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "ID of the page."
                      },
                      "type": {
                        "type": "string",
                        "description": "Type of the page reference."
                      },
                      "href": {
                        "type": "string",
                        "description": "API link to the page."
                      },
                      "browserLink": {
                        "type": "string",
                        "description": "Browser-friendly link to the page."
                      },
                      "name": {
                        "type": "string",
                        "description": "Name of the page."
                      }
                    },
                    "additionalProperties": true,
                    "description": "Coda page reference."
                  },
                  "description": "Child page references."
                },
                "authors": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "A Coda object returned by the API."
                  },
                  "description": "Authors associated with the page."
                },
                "createdAt": {
                  "type": "string",
                  "description": "Timestamp when the page was created."
                },
                "createdBy": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A Coda object returned by the API."
                },
                "updatedAt": {
                  "type": "string",
                  "description": "Timestamp when the page was last updated."
                },
                "updatedBy": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A Coda object returned by the API."
                }
              },
              "additionalProperties": true,
              "description": "Coda page."
            },
            "description": "Pages returned by the query."
          },
          "nextPageToken": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque token used to fetch the next page of results, or null when unavailable."
              },
              {
                "type": "null"
              }
            ]
          },
          "nextPageLink": {
            "anyOf": [
              {
                "type": "string",
                "description": "URL for the next page of results, or null when unavailable."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Paginated Coda page list."
      }
    },
    {
      "id": "coda.list_rows",
      "service": "coda",
      "name": "list_rows",
      "description": "List rows in a Coda table with filtering, sorting, pagination, optional sync tokens, and configurable cell value formats.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "docId": {
            "type": "string",
            "minLength": 1,
            "description": "ID of the doc."
          },
          "tableIdOrName": {
            "type": "string",
            "minLength": 1,
            "description": "ID or name of the table. Names are discouraged because they are fragile."
          },
          "query": {
            "type": "string",
            "description": "Row query in the official `<column_id_or_name>:<value>` format."
          },
          "sortBy": {
            "type": "string",
            "description": "Sort order for the returned rows."
          },
          "useColumnNames": {
            "type": "boolean",
            "description": "Whether returned row values should be keyed by column names instead of IDs."
          },
          "valueFormat": {
            "type": "string",
            "enum": [
              "simple",
              "simpleWithArrays",
              "rich"
            ],
            "description": "Format for returned cell values."
          },
          "visibleOnly": {
            "type": "boolean",
            "description": "Whether to return only visible rows and columns."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Maximum number of results to return."
          },
          "pageToken": {
            "type": "string",
            "minLength": 1,
            "description": "Opaque token used to fetch the next page of results."
          },
          "syncToken": {
            "type": "string",
            "description": "Sync token from a previous call for incremental reads."
          }
        },
        "additionalProperties": false,
        "required": [
          "docId",
          "tableIdOrName"
        ],
        "description": "The input payload for this action."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "ID of the row."
                },
                "type": {
                  "type": "string",
                  "description": "Type of the row resource."
                },
                "href": {
                  "type": "string",
                  "description": "API link to the row."
                },
                "name": {
                  "type": "string",
                  "description": "Display name of the row."
                },
                "index": {
                  "type": "integer",
                  "description": "Index of the row within the table."
                },
                "browserLink": {
                  "type": "string",
                  "description": "Browser-friendly link to the row."
                },
                "createdAt": {
                  "type": "string",
                  "description": "Timestamp when the row was created."
                },
                "updatedAt": {
                  "type": "string",
                  "description": "Timestamp when the row was last modified."
                },
                "values": {
                  "type": "object",
                  "additionalProperties": {
                    "description": "A Coda value."
                  },
                  "description": "A record of values keyed by Coda field names or IDs."
                }
              },
              "additionalProperties": true,
              "description": "Coda row."
            },
            "description": "Rows returned by the query."
          },
          "nextPageToken": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque token used to fetch the next page of results, or null when unavailable."
              },
              {
                "type": "null"
              }
            ]
          },
          "nextPageLink": {
            "anyOf": [
              {
                "type": "string",
                "description": "URL for the next page of results, or null when unavailable."
              },
              {
                "type": "null"
              }
            ]
          },
          "nextSyncToken": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque sync token for incremental follow-up reads, or null when unavailable."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Paginated Coda row list."
      }
    },
    {
      "id": "coda.list_tables",
      "service": "coda",
      "name": "list_tables",
      "description": "List tables in a Coda doc with pagination, optional sort order, and optional table-type filtering.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "docId": {
            "type": "string",
            "minLength": 1,
            "description": "ID of the doc."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Maximum number of results to return."
          },
          "pageToken": {
            "type": "string",
            "minLength": 1,
            "description": "Opaque token used to fetch the next page of results."
          },
          "sortBy": {
            "type": "string",
            "description": "Determines how to sort the returned tables."
          },
          "tableTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "Table types to include in results."
          }
        },
        "additionalProperties": false,
        "required": [
          "docId"
        ],
        "description": "The input payload for this action."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "ID of the table."
                },
                "type": {
                  "type": "string",
                  "description": "Type of the table reference."
                },
                "tableType": {
                  "type": "string",
                  "description": "Type of the table or view."
                },
                "href": {
                  "type": "string",
                  "description": "API link to the table."
                },
                "browserLink": {
                  "type": "string",
                  "description": "Browser-friendly link to the table."
                },
                "name": {
                  "type": "string",
                  "description": "Name of the table."
                }
              },
              "additionalProperties": true,
              "description": "Coda table reference."
            },
            "description": "Tables returned by the query."
          },
          "nextPageToken": {
            "anyOf": [
              {
                "type": "string",
                "description": "Opaque token used to fetch the next page of results, or null when unavailable."
              },
              {
                "type": "null"
              }
            ]
          },
          "nextPageLink": {
            "anyOf": [
              {
                "type": "string",
                "description": "URL for the next page of results, or null when unavailable."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Paginated Coda table list."
      }
    },
    {
      "id": "coda.upsert_rows",
      "service": "coda",
      "name": "upsert_rows",
      "description": "Insert rows into a Coda table, optionally updating existing rows when key columns are provided.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "docId": {
            "type": "string",
            "minLength": 1,
            "description": "ID of the doc."
          },
          "tableIdOrName": {
            "type": "string",
            "minLength": 1,
            "description": "ID or name of the table. Names are discouraged because they are fragile."
          },
          "disableParsing": {
            "type": "boolean",
            "description": "Whether Coda should skip automatic value parsing."
          },
          "keyColumns": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "Column IDs, URLs, or names used as upsert keys."
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "cells": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "column": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Column ID, URL, or name associated with this edit."
                      },
                      "value": {
                        "description": "Value to write to the cell."
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "column",
                      "value"
                    ],
                    "description": "Cell edit payload."
                  },
                  "description": "Cells to write for the target row.",
                  "minItems": 1
                }
              },
              "additionalProperties": false,
              "required": [
                "cells"
              ],
              "description": "Row edit payload."
            },
            "description": "Rows to insert or upsert.",
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "required": [
          "docId",
          "tableIdOrName",
          "rows"
        ],
        "description": "The input payload for this action."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "Request ID for the asynchronous row upsert."
          },
          "addedRowIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "Row IDs that will be added when Coda can determine them upfront."
          }
        },
        "additionalProperties": false,
        "description": "The output payload for this action."
      }
    }
  ]
}
