Files
remote-center/templates/center/functions/create_space.mjs
T

15 lines
392 B
JavaScript

export const spec = {
name: 'create_space',
description: 'Create a new space: a named sub-remote with its own working directory.',
parameters: {
type: 'object',
properties: {
name: { type: 'string', description: 'Name of the new space.' },
},
required: ['name'],
},
};
export default async function (args, ctx) {
return await ctx.api.createSpace(args.name);
}