get_myself
Retrieve authenticated user details via integration with Backlog project management tools, enabling efficient access to user-specific information.
Instructions
Returns information about the authenticated user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/getMyself.ts:9-27 (handler)Defines the 'get_myself' tool including its schema, description, output schema, and handler function that retrieves user information via backlog.getMyself().export const getMyselfTool = ( backlog: Backlog, { t }: TranslationHelper ): ToolDefinition< ReturnType<typeof getMyselfSchema>, (typeof UserSchema)['shape'] > => { return { name: 'get_myself', description: t( 'TOOL_GET_MYSELF_DESCRIPTION', 'Returns information about the authenticated user' ), schema: z.object(getMyselfSchema(t)), outputSchema: UserSchema, importantFields: ['id', 'userId', 'name', 'roleType'], handler: async () => backlog.getMyself(), }; };
- src/tools/getMyself.ts:7-7 (schema)Defines the input schema for the get_myself tool, which takes no parameters.const getMyselfSchema = buildToolSchema((_t) => ({}));
- src/tools/tools.ts:59-69 (registration)Registers the getMyselfTool as part of the 'space' toolset in the allTools function.{ name: 'space', description: 'Tools for managing Backlog space settings and general information.', enabled: false, tools: [ getSpaceTool(backlog, helper), getUsersTool(backlog, helper), getMyselfTool(backlog, helper), ], },
- src/tools/tools.ts:21-21 (registration)Imports the getMyselfTool for use in tool registration.import { getMyselfTool } from './getMyself.js';