The /microsoft-powerpoint command enables you to manage your presentations and slides through Microsoft PowerPoint via the Microsoft Graph API. Perfect for:

  • Managing presentation files
  • Downloading and uploading presentations
  • Creating shareable links
  • Organizing presentation content
  • File management automation

Basic Usage

Use the command to work with PowerPoint:

/microsoft-powerpoint download presentation "Quarterly Review.pptx"
/microsoft-powerpoint upload new presentation to Documents folder
/microsoft-powerpoint create shareable link for "Team Training.pptx"

Key Features

File Management

  • Download presentations
  • Upload presentations
  • List presentation files
  • Search for presentations
  • File organization
  • Create temporary public links
  • Generate shareable URLs
  • Set expiration dates
  • Anonymous access control
  • Link management

Content Access

  • Get presentation thumbnails
  • Access slide previews
  • File metadata retrieval
  • Content organization
  • Version management

Example Commands

File Operations

/microsoft-powerpoint list all PowerPoint files in my drive

Download Operations

/microsoft-powerpoint download "Sales Presentation.pptx" for editing

Upload Operations

/microsoft-powerpoint upload updated presentation to shared folder

Sharing Operations

/microsoft-powerpoint generate public link for presentation with 24-hour expiration

File Discovery

List PowerPoint Files

const url = POWERPOINT_URL + "me/drive/root/children";

Search for Presentations

const url = POWERPOINT_URL + "me/drive/root/search(q='.pptx')";

Get File by Path

const url = POWERPOINT_URL + "me/drive/root:/Presentations/Quarterly.pptx";

File Response

{
  "id": "0123456789abc!123",
  "name": "Presentation1.pptx",
  "size": 204800,
  "file": {},
  "createdDateTime": "2025-01-15T10:30:00Z",
  "lastModifiedDateTime": "2025-01-15T14:20:00Z"
}

File Operations

Download Presentation

const url = POWERPOINT_URL + `me/drive/items/${itemId}/content`;

Upload Presentation

// PUT request with binary content
const url = POWERPOINT_URL + "me/drive/root:/Presentations/NewPresentation.pptx:/content";

Upload Response

{
  "id": "0123456789abc!123",
  "name": "NewPresentation.pptx",
  "size": 204800,
  "file": {},
  "createdDateTime": "2025-01-15T15:00:00Z"
}
{
  "type": "view",
  "scope": "anonymous",
  "expirationDateTime": "2025-03-07T12:00:00Z"
}
{
  "id": "[ITEM ID]",
  "roles": ["read"],
  "shareId": "[SHARE ID]",
  "expirationDateTime": "[EXPIRATION DATE TIME]",
  "hasPassword": false,
  "link": {
    "scope": "anonymous",
    "type": "view",
    "webUrl": "[LINK]"
  }
}
  • view: Read-only access
  • edit: Full editing capabilities
  • embed: Embedding in websites
  • anonymous: No authentication required
  • organization: Organization members only
  • users: Specific users only

Thumbnail Operations

Get Thumbnails

const url = POWERPOINT_URL + `me/drive/items/${itemId}/thumbnails`;

Thumbnail Response

{
  "value": [
    {
      "id": "0",
      "large": {
        "height": 800,
        "width": 1280,
        "url": "https://example.com/thumbnail_large.png"
      },
      "medium": {
        "height": 427,
        "width": 640,
        "url": "https://example.com/thumbnail_medium.png"
      },
      "small": {
        "height": 213,
        "width": 320,
        "url": "https://example.com/thumbnail_small.png"
      }
    }
  ]
}

File Properties

Basic Properties

  • id: Unique file identifier
  • name: File name with extension
  • size: File size in bytes
  • file: File-specific metadata
  • createdDateTime: Creation timestamp
  • lastModifiedDateTime: Last modification time

Advanced Properties

  • webUrl: Direct access URL
  • downloadUrl: Download link
  • parentReference: Parent folder info
  • createdBy: Creator information
  • lastModifiedBy: Last modifier info

Content Types

PowerPoint MIME Type

application/vnd.openxmlformats-officedocument.presentationml.presentation

File Extensions

  • .pptx: PowerPoint presentation
  • .pptm: Macro-enabled presentation
  • .potx: PowerPoint template
  • .potm: Macro-enabled template

Best Practices

  1. File Management

    • Use descriptive file names
    • Organize in logical folders
    • Maintain version control
    • Regular backup procedures
  2. Link Sharing

    • Set appropriate expiration dates
    • Use minimal required permissions
    • Monitor link usage
    • Revoke when necessary
  3. Content Organization

    • Create folder hierarchies
    • Use consistent naming conventions
    • Tag files appropriately
    • Implement search strategies
  4. Security Considerations

    • Validate file permissions
    • Monitor access logs
    • Use organization scope when possible
    • Regular security audits

Common Use Cases

Presentation Management

/microsoft-powerpoint organize quarterly presentations by department

Content Sharing

/microsoft-powerpoint create temporary links for external stakeholder review

Backup Operations

/microsoft-powerpoint download all presentations for local backup

Template Distribution

/microsoft-powerpoint upload corporate templates to shared library

Error Handling

Common Issues

  • File not found errors
  • Permission denied
  • Upload size limits
  • Network timeouts

File Locking

  • Files open in desktop PowerPoint may be locked
  • Check file status before operations
  • Handle concurrent access gracefully
  • Implement retry mechanisms

Limitations

API Constraints

  • No direct slide manipulation
  • Limited content editing capabilities
  • File-level operations only
  • Requires local processing for advanced editing

Editing Requirements

  • Download file for complex edits
  • Use appropriate libraries for modification
  • Re-upload modified content
  • Maintain file integrity

Integration Tips

Workflow Automation

  • Combine with email systems
  • Integrate with approval processes
  • Automate content distribution
  • Schedule regular operations

Content Processing

  • Extract slide content for analysis
  • Generate presentation summaries
  • Create content indexes
  • Implement search functionality

Performance Optimization

Efficient Operations

  • Cache file metadata
  • Batch multiple operations
  • Use appropriate timeouts
  • Monitor API limits

File Handling

  • Stream large files
  • Compress when possible
  • Validate before upload
  • Handle errors gracefully

Tips

  • Always obtain item ID before performing file operations
  • Set mandatory expiration dates for public links (next day recommended)
  • Use search functionality to find presentations efficiently
  • Handle file locking when presentations are open in desktop apps
  • Implement proper error handling for network operations
  • Cache thumbnails for better user experience

The /microsoft-powerpoint command enables you to manage your presentations and slides through Microsoft PowerPoint via the Microsoft Graph API. Perfect for:

  • Managing presentation files
  • Downloading and uploading presentations
  • Creating shareable links
  • Organizing presentation content
  • File management automation

Basic Usage

Use the command to work with PowerPoint:

/microsoft-powerpoint download presentation "Quarterly Review.pptx"
/microsoft-powerpoint upload new presentation to Documents folder
/microsoft-powerpoint create shareable link for "Team Training.pptx"

Key Features

File Management

  • Download presentations
  • Upload presentations
  • List presentation files
  • Search for presentations
  • File organization
  • Create temporary public links
  • Generate shareable URLs
  • Set expiration dates
  • Anonymous access control
  • Link management

Content Access

  • Get presentation thumbnails
  • Access slide previews
  • File metadata retrieval
  • Content organization
  • Version management

Example Commands

File Operations

/microsoft-powerpoint list all PowerPoint files in my drive

Download Operations

/microsoft-powerpoint download "Sales Presentation.pptx" for editing

Upload Operations

/microsoft-powerpoint upload updated presentation to shared folder

Sharing Operations

/microsoft-powerpoint generate public link for presentation with 24-hour expiration

File Discovery

List PowerPoint Files

const url = POWERPOINT_URL + "me/drive/root/children";

Search for Presentations

const url = POWERPOINT_URL + "me/drive/root/search(q='.pptx')";

Get File by Path

const url = POWERPOINT_URL + "me/drive/root:/Presentations/Quarterly.pptx";

File Response

{
  "id": "0123456789abc!123",
  "name": "Presentation1.pptx",
  "size": 204800,
  "file": {},
  "createdDateTime": "2025-01-15T10:30:00Z",
  "lastModifiedDateTime": "2025-01-15T14:20:00Z"
}

File Operations

Download Presentation

const url = POWERPOINT_URL + `me/drive/items/${itemId}/content`;

Upload Presentation

// PUT request with binary content
const url = POWERPOINT_URL + "me/drive/root:/Presentations/NewPresentation.pptx:/content";

Upload Response

{
  "id": "0123456789abc!123",
  "name": "NewPresentation.pptx",
  "size": 204800,
  "file": {},
  "createdDateTime": "2025-01-15T15:00:00Z"
}
{
  "type": "view",
  "scope": "anonymous",
  "expirationDateTime": "2025-03-07T12:00:00Z"
}
{
  "id": "[ITEM ID]",
  "roles": ["read"],
  "shareId": "[SHARE ID]",
  "expirationDateTime": "[EXPIRATION DATE TIME]",
  "hasPassword": false,
  "link": {
    "scope": "anonymous",
    "type": "view",
    "webUrl": "[LINK]"
  }
}
  • view: Read-only access
  • edit: Full editing capabilities
  • embed: Embedding in websites
  • anonymous: No authentication required
  • organization: Organization members only
  • users: Specific users only

Thumbnail Operations

Get Thumbnails

const url = POWERPOINT_URL + `me/drive/items/${itemId}/thumbnails`;

Thumbnail Response

{
  "value": [
    {
      "id": "0",
      "large": {
        "height": 800,
        "width": 1280,
        "url": "https://example.com/thumbnail_large.png"
      },
      "medium": {
        "height": 427,
        "width": 640,
        "url": "https://example.com/thumbnail_medium.png"
      },
      "small": {
        "height": 213,
        "width": 320,
        "url": "https://example.com/thumbnail_small.png"
      }
    }
  ]
}

File Properties

Basic Properties

  • id: Unique file identifier
  • name: File name with extension
  • size: File size in bytes
  • file: File-specific metadata
  • createdDateTime: Creation timestamp
  • lastModifiedDateTime: Last modification time

Advanced Properties

  • webUrl: Direct access URL
  • downloadUrl: Download link
  • parentReference: Parent folder info
  • createdBy: Creator information
  • lastModifiedBy: Last modifier info

Content Types

PowerPoint MIME Type

application/vnd.openxmlformats-officedocument.presentationml.presentation

File Extensions

  • .pptx: PowerPoint presentation
  • .pptm: Macro-enabled presentation
  • .potx: PowerPoint template
  • .potm: Macro-enabled template

Best Practices

  1. File Management

    • Use descriptive file names
    • Organize in logical folders
    • Maintain version control
    • Regular backup procedures
  2. Link Sharing

    • Set appropriate expiration dates
    • Use minimal required permissions
    • Monitor link usage
    • Revoke when necessary
  3. Content Organization

    • Create folder hierarchies
    • Use consistent naming conventions
    • Tag files appropriately
    • Implement search strategies
  4. Security Considerations

    • Validate file permissions
    • Monitor access logs
    • Use organization scope when possible
    • Regular security audits

Common Use Cases

Presentation Management

/microsoft-powerpoint organize quarterly presentations by department

Content Sharing

/microsoft-powerpoint create temporary links for external stakeholder review

Backup Operations

/microsoft-powerpoint download all presentations for local backup

Template Distribution

/microsoft-powerpoint upload corporate templates to shared library

Error Handling

Common Issues

  • File not found errors
  • Permission denied
  • Upload size limits
  • Network timeouts

File Locking

  • Files open in desktop PowerPoint may be locked
  • Check file status before operations
  • Handle concurrent access gracefully
  • Implement retry mechanisms

Limitations

API Constraints

  • No direct slide manipulation
  • Limited content editing capabilities
  • File-level operations only
  • Requires local processing for advanced editing

Editing Requirements

  • Download file for complex edits
  • Use appropriate libraries for modification
  • Re-upload modified content
  • Maintain file integrity

Integration Tips

Workflow Automation

  • Combine with email systems
  • Integrate with approval processes
  • Automate content distribution
  • Schedule regular operations

Content Processing

  • Extract slide content for analysis
  • Generate presentation summaries
  • Create content indexes
  • Implement search functionality

Performance Optimization

Efficient Operations

  • Cache file metadata
  • Batch multiple operations
  • Use appropriate timeouts
  • Monitor API limits

File Handling

  • Stream large files
  • Compress when possible
  • Validate before upload
  • Handle errors gracefully

Tips

  • Always obtain item ID before performing file operations
  • Set mandatory expiration dates for public links (next day recommended)
  • Use search functionality to find presentations efficiently
  • Handle file locking when presentations are open in desktop apps
  • Implement proper error handling for network operations
  • Cache thumbnails for better user experience