MCPcopy Index your code
hub / github.com/anomalyco/opencode / parameterSchema

Function parameterSchema

packages/opencode/src/tool/shell/prompt.ts:15–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15export function parameterSchema() {
16 return Schema.Struct({
17 command: Schema.String.annotate({ description: "The command to execute" }),
18 timeout: Schema.optional(PositiveInt).annotate({ description: "Optional timeout in milliseconds" }),
19 workdir: Schema.optional(Schema.String).annotate({
20 description: `The working directory to run the command in. Defaults to the current directory. Use this instead of 'cd' commands.`,
21 }),
22 })
23}
24
25export const Parameters = parameterSchema()
26export type Parameters = Schema.Schema.Type<typeof Parameters>

Callers 2

prompt.tsFile · 0.85
renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected