Google Colab · Capability

Google Colab Notebooks via Drive API — Permissions

Google Colab Notebooks via Drive API — Permissions. 2 operations. Lead operation: Google Colab List notebook permissions. Self-contained Naftiko capability covering one Google Colab business surface.

Run with Naftiko Google ColabPermissions

What You Can Do

GET
Listpermissions — Google Colab List notebook permissions
/v1/files/{fileid}/permissions
POST
Createpermission — Google Colab Share a notebook
/v1/files/{fileid}/permissions

MCP Tools

google-colab-list-notebook-permissions

Google Colab List notebook permissions

read-only idempotent
google-colab-share-notebook

Google Colab Share a notebook

Capability Spec

colab-drive-permissions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Colab Notebooks via Drive API — Permissions
  description: 'Google Colab Notebooks via Drive API — Permissions. 2 operations. Lead operation: Google Colab List notebook
    permissions. Self-contained Naftiko capability covering one Google Colab business surface.'
  tags:
  - Google Colab
  - Permissions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_COLAB_API_KEY: GOOGLE_COLAB_API_KEY
capability:
  consumes:
  - type: http
    namespace: colab-drive-permissions
    baseUri: https://www.googleapis.com/drive/v3
    description: Google Colab Notebooks via Drive API — Permissions business capability. Self-contained, no shared references.
    resources:
    - name: files-fileId-permissions
      path: /files/{fileId}/permissions
      operations:
      - name: listpermissions
        method: GET
        description: Google Colab List notebook permissions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createpermission
        method: POST
        description: Google Colab Share a notebook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.GOOGLE_COLAB_API_KEY}}'
  exposes:
  - type: rest
    namespace: colab-drive-permissions-rest
    port: 8080
    description: REST adapter for Google Colab Notebooks via Drive API — Permissions. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/files/{fileid}/permissions
      name: files-fileid-permissions
      description: REST surface for files-fileId-permissions.
      operations:
      - method: GET
        name: listpermissions
        description: Google Colab List notebook permissions
        call: colab-drive-permissions.listpermissions
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createpermission
        description: Google Colab Share a notebook
        call: colab-drive-permissions.createpermission
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: colab-drive-permissions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Colab Notebooks via Drive API — Permissions. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: google-colab-list-notebook-permissions
      description: Google Colab List notebook permissions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: colab-drive-permissions.listpermissions
      outputParameters:
      - type: object
        mapping: $.
    - name: google-colab-share-notebook
      description: Google Colab Share a notebook
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: colab-drive-permissions.createpermission
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.