1// SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
2//
3// SPDX-License-Identifier: LicenseRef-MutuaL-1.2
4
5// Package server defines the MCP tool parameter types for the SilverBullet server.
6package server
7
8// ExecuteLuaParams defines parameters for the execute_lua tool.
9type ExecuteLuaParams struct {
10 Script string `json:"script" jsonschema:"The Space Lua script to execute. Use 'return' to send results back."`
11 Timeout int `json:"timeout,omitempty" jsonschema:"Maximum execution time in seconds (1-21600,default=120)"`
12}
13
14// ScreenshotParams defines parameters for the screenshot tool.
15type ScreenshotParams struct{}
16
17// ConsoleLogsParams defines parameters for the console_logs tool.
18type ConsoleLogsParams struct {
19 Limit int `json:"limit,omitempty" jsonschema:"Maximum number of log entries to return (1-1000,default=100)"`
20 Since int64 `json:"since,omitempty" jsonschema:"Only return entries newer than this unix millisecond timestamp (optional)"`
21}
22
23// UsageParams is empty because there are none :D .
24type UsageParams struct{}