Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) AddCodeTextBox(presentationId string, slideId string, text string, ...) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) AddImage(presentationId string, slideId string, imageUrl string, ...) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) AddShape(presentationId string, slideId string, shapeType string, ...) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) AddTable(presentationId string, slideId string, rows, columns int, ...) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) AddTextBox(presentationId string, slideId string, text string, ...) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) ApplyCodeFormattingToPlaceholder(presentationId string, shapeId string, codeRanges []struct{ ... }) error
- func (c *Client) ApplyTemplate(presentationId string, templateId string) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) BatchUpdate(presentationId string, requests []*slides.Request) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) CreatePresentation(title string) (*slides.Presentation, error)
- func (c *Client) CreateSlide(presentationId string, insertionIndex int) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) CreateSlideWithLayout(presentationId string, layoutId string, insertionIndex int) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) DeleteSlide(presentationId string, slideId string) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) DeleteTextInPlaceholder(presentationId string, shapeId string) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) DuplicateSlide(presentationId string, slideId string) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) GetLayoutId(presentationId string, layoutName string) (string, error)
- func (c *Client) GetPresentation(presentationId string) (*slides.Presentation, error)
- func (c *Client) InsertTextInPlaceholder(presentationId string, shapeId string, text string) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) InsertTextInTableCell(presentationId string, tableId string, row, col int, text string) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) ListPresentations() ([]*slides.Presentation, error)
- func (c *Client) ReplaceAllTextInSlide(presentationId string, slideId string, oldText, newText string) (*slides.BatchUpdatePresentationResponse, error)
- func (c *Client) SetSlideLayout(presentationId string, slideId string, layoutId string) (*slides.BatchUpdatePresentationResponse, error)
- type FormatRange
- type MarkdownConverter
- type MarkdownElement
- type MarkdownSlide
- type MultiAccountService
- type Service
Constants ¶
View Source
const ( // Slide dimensions in points (standard 16:9) SlideWidth = 720.0 SlideHeight = 405.0 // Default margins MarginTop = 50.0 MarginBottom = 50.0 MarginLeft = 50.0 MarginRight = 50.0 // Text properties DefaultFontSize = 14.0 TitleFontSize = 32.0 H1FontSize = 28.0 H2FontSize = 24.0 H3FontSize = 20.0 LineHeight = 1.5 // Estimated character width for pagination CharWidth = 7.0 // Approximate for 14pt font )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddCodeTextBox ¶
func (*Client) AddTextBox ¶
func (*Client) ApplyCodeFormattingToPlaceholder ¶
func (c *Client) ApplyCodeFormattingToPlaceholder(presentationId string, shapeId string, codeRanges []struct { start int end int }) error
ApplyCodeFormattingToPlaceholder applies Courier New font to specific text ranges in a placeholder
func (*Client) ApplyTemplate ¶
func (*Client) BatchUpdate ¶
func (*Client) CreatePresentation ¶
func (c *Client) CreatePresentation(title string) (*slides.Presentation, error)
func (*Client) CreateSlide ¶
func (*Client) CreateSlideWithLayout ¶
func (c *Client) CreateSlideWithLayout(presentationId string, layoutId string, insertionIndex int) (*slides.BatchUpdatePresentationResponse, error)
CreateSlideWithLayout creates a new slide with a specific layout
func (*Client) DeleteSlide ¶
func (*Client) DeleteTextInPlaceholder ¶
func (c *Client) DeleteTextInPlaceholder(presentationId string, shapeId string) (*slides.BatchUpdatePresentationResponse, error)
DeleteTextInPlaceholder deletes existing text in a placeholder
func (*Client) DuplicateSlide ¶
func (*Client) GetLayoutId ¶
GetLayoutId gets the layout ID by name from a presentation
func (*Client) GetPresentation ¶
func (c *Client) GetPresentation(presentationId string) (*slides.Presentation, error)
func (*Client) InsertTextInPlaceholder ¶
func (c *Client) InsertTextInPlaceholder(presentationId string, shapeId string, text string) (*slides.BatchUpdatePresentationResponse, error)
InsertTextInPlaceholder inserts text into a placeholder shape
func (*Client) InsertTextInTableCell ¶
func (c *Client) InsertTextInTableCell(presentationId string, tableId string, row, col int, text string) (*slides.BatchUpdatePresentationResponse, error)
InsertTextInTableCell inserts text into a specific table cell
func (*Client) ListPresentations ¶
func (c *Client) ListPresentations() ([]*slides.Presentation, error)
func (*Client) ReplaceAllTextInSlide ¶
func (*Client) SetSlideLayout ¶
type FormatRange ¶
type MarkdownConverter ¶
type MarkdownConverter struct {
// contains filtered or unexported fields
}
func NewMarkdownConverter ¶
func NewMarkdownConverter(client *Client, presentationId string) *MarkdownConverter
func (*MarkdownConverter) CreateSlidesFromMarkdown ¶
func (mc *MarkdownConverter) CreateSlidesFromMarkdown(markdown string) ([]*slides.Page, error)
func (*MarkdownConverter) ParseMarkdown ¶
func (mc *MarkdownConverter) ParseMarkdown(markdown string) []MarkdownSlide
func (*MarkdownConverter) UpdateSlidesFromMarkdown ¶
func (mc *MarkdownConverter) UpdateSlidesFromMarkdown(markdown string) error
type MarkdownElement ¶
type MarkdownSlide ¶
type MarkdownSlide struct {
Title string
Content []MarkdownElement
Layout string
}
type MultiAccountService ¶
type MultiAccountService struct {
// contains filtered or unexported fields
}
func NewMultiAccountService ¶
func NewMultiAccountService(authManager *auth.AccountManager) *MultiAccountService
func (*MultiAccountService) GetTools ¶
func (s *MultiAccountService) GetTools() []server.Tool
func (*MultiAccountService) HandleToolCall ¶
func (s *MultiAccountService) HandleToolCall(ctx context.Context, name string, arguments json.RawMessage) (interface{}, error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(authManager *auth.AccountManager) *Service
func (*Service) HandleToolCall ¶
Click to show internal directories.
Click to hide internal directories.