version: "1.0.2" name: stdlib.file.readhead description: Read first N lines of a file
primitives:
inputs: path: type: string required: true lines: type: integer required: true
outputs: content: string
steps:
- call: stdlib.file.readhead
args: path: "{{ path }}" lines: "{{ lines }}"
metadata: tags: ['file', 'read'] input_types: path: string lines: integer output_types: content: string side_effects: ["none"] safety_level: "low" cost_estimate: latency: 1 resources: "low" determinism: "pure" prerequisites: []