Skip to content

Implement a batch snippet function to demo complex type#69

Merged
liliankasem merged 1 commit intomainfrom
liliankasem/batch-snippet-func
Mar 31, 2026
Merged

Implement a batch snippet function to demo complex type#69
liliankasem merged 1 commit intomainfrom
liliankasem/batch-snippet-func

Conversation

@liliankasem
Copy link
Copy Markdown
Member

A sample that shows how to save snippets in batch via binding to a complex type:

[McpToolProperty(SnippetItemsPropertyName, SnippetItemsPropertyDescription, true)] IEnumerable<Dictionary<string, object>> snippetItems

You can invoke this tool with

[
  {
    "1": "snippet 1"
  },
  {
    "2": "snippet 2"
  }
]

@liliankasem liliankasem merged commit 5daea6a into main Mar 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant